mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Change instanceof Object to instanceof BaseObject
This commit is contained in:
parent
84e5542d77
commit
ae971306b7
6 changed files with 8 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue