Change instanceof Object to instanceof BaseObject

This commit is contained in:
Kijin Sung 2017-12-01 01:10:48 +09:00
parent 84e5542d77
commit ae971306b7
6 changed files with 8 additions and 8 deletions

View file

@ -60,7 +60,7 @@ class editorController extends editor
if(method_exists($oComponent, $method)) $output = $oComponent->{$method}();
else return $this->setError('%s method is not exists', $method);
if($output instanceof Object && !$output->toBool()) return $output;
if($output instanceof BaseObject && !$output->toBool()) return $output;
$this->setError($oComponent->getError());
$this->setMessage($oComponent->getMessage());