Fix warning error in PHP8.0. Set to return output data in notice list.

This commit is contained in:
BJRambo 2021-07-15 17:18:29 +09:00
parent c7f84a178d
commit 03aef25eda

View file

@ -326,7 +326,7 @@ class documentModel extends document
if(!$output->toBool() || !$result = $output->data)
{
return;
return $output;
}
$output->data = array();
@ -340,8 +340,11 @@ class documentModel extends document
$output->data[$attribute->document_srl] = $GLOBALS['XE_DOCUMENT_LIST'][$attribute->document_srl];
}
self::setToAllDocumentExtraVars();
// Call trigger (after)
// This trigger can be used to modify search results
ModuleHandler::triggerCall('document.getNoticeList', 'after', $output);