* Fix bug in php7.1

This commit is contained in:
滔哥
2017-11-17 15:02:26 +08:00
parent 6a87a80a4d
commit bda8f7434f
+6 -1
View File
@@ -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]))