diff --git a/module/tree/model.php b/module/tree/model.php index 86accc9394..3687157c8e 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -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]))