mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +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
|
|
@ -228,13 +228,13 @@ class documentModel extends document
|
|||
// Call trigger (before)
|
||||
// This trigger can be used to set an alternative output using a different search method
|
||||
$output = ModuleHandler::triggerCall('document.getDocumentList', 'before', $obj);
|
||||
if($output instanceof Object && !$output->toBool())
|
||||
if($output instanceof BaseObject && !$output->toBool())
|
||||
{
|
||||
return $output;
|
||||
}
|
||||
|
||||
// If an alternate output is set, use it instead of running the default queries
|
||||
$use_alternate_output = (isset($obj->use_alternate_output) && $obj->use_alternate_output instanceof Object);
|
||||
$use_alternate_output = (isset($obj->use_alternate_output) && $obj->use_alternate_output instanceof BaseObject);
|
||||
if (!$use_alternate_output)
|
||||
{
|
||||
$this->_setSearchOption($obj, $args, $query_id, $use_division);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue