Fixed instanceof to use interface instead of class

This commit is contained in:
Vincent Petry 2014-06-12 14:40:43 +02:00
parent ca690c4d02
commit 05e351416e
1 changed files with 2 additions and 1 deletions

View File

@ -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));
});