* Fix bug in php7.1
This commit is contained in:
@@ -676,7 +676,12 @@ class treeModel extends model
|
||||
if(!$hasObjects) return;
|
||||
}
|
||||
|
||||
if(is_array($extra) or empty($extra)) $extra['branchID'] = $branch;
|
||||
if(is_array($extra)) $extra['branchID'] = $branch;
|
||||
if(empty($extra))
|
||||
{
|
||||
$extra = array();
|
||||
$extra['branchID'] = $branch;
|
||||
}
|
||||
$linkHtml = call_user_func($userFunc, $type, $module, $extra);
|
||||
|
||||
if(isset($treeMenu[$module->id]) and !empty($treeMenu[$module->id]))
|
||||
|
||||
Reference in New Issue
Block a user