From 05e351416e1c45b88c7e51d39a4e9961e5b8546f Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 12 Jun 2014 14:40:43 +0200 Subject: [PATCH] Fixed instanceof to use interface instead of class --- lib/private/repair.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/repair.php b/lib/private/repair.php index 8979d04808..23d1c2b831 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)); });