diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-12 16:40:43 +0400 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-12 19:38:26 +0400 |
commit | 05e351416e1c45b88c7e51d39a4e9961e5b8546f (patch) | |
tree | c92aee20d68a9b0abe6d53de82c68fbfc7eaffb2 /lib/private/repair.php | |
parent | ca690c4d02d6c59e3fb9edb0f75ae640d744b612 (diff) |
Fixed instanceof to use interface instead of class
Diffstat (limited to 'lib/private/repair.php')
-rw-r--r-- | lib/private/repair.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/repair.php b/lib/private/repair.php index 8979d04808b..23d1c2b831e 100644 --- a/lib/private/repair.php +++ b/lib/private/repair.php @@ -9,6 +9,7 @@ namespace OC; use OC\Hooks\BasicEmitter; +use OC\Hooks\Emitter; class Repair extends BasicEmitter { /** @@ -38,7 +39,7 @@ class Repair extends BasicEmitter { foreach ($this->repairSteps as $step) { $this->emit('\OC\Repair', 'step', array($step->getName())); - if ($step instanceof BasicEmitter) { + if ($step instanceof Emitter) { $step->listen('\OC\Repair', 'warning', function ($description) use ($self) { $self->emit('\OC\Repair', 'warning', array($description)); }); |