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

@ -514,7 +514,7 @@ class commentModel extends comment
// call trigger (before)
$trigger_output = ModuleHandler::triggerCall('comment.getCommentList', 'before', $args);
if($trigger_output instanceof Object && !$trigger_output->toBool())
if($trigger_output instanceof BaseObject && !$trigger_output->toBool())
{
return $output;
}
@ -540,7 +540,7 @@ class commentModel extends comment
// call trigger (after)
$trigger_output = ModuleHandler::triggerCall('comment.getCommentList', 'after', $output);
if($trigger_output instanceof Object && !$trigger_output->toBool())
if($trigger_output instanceof BaseObject && !$trigger_output->toBool())
{
return $trigger_output;
}