diff options
Diffstat (limited to 'lib')
-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)); }); |