* Change return data type.

This commit is contained in:
caoyanyi
2023-05-31 16:04:24 +08:00
parent 748d8f23fe
commit fc3cf42eb2
+1 -2
View File
@@ -504,7 +504,7 @@ class treeModel extends model
if(!$this->isMergeModule($rootID, 'task') || !$products)
{
$extra['tip'] = false;
return $this->getTreeMenu($rootID, 'task', $startModule, $userFunc, $extra);
return (array)$this->getTreeMenu($rootID, 'task', $startModule, $userFunc, $extra);
}
/* createdVersion > 4.1. */
@@ -534,7 +534,6 @@ class treeModel extends model
}
/* tree menu. */
$tree = '';
if(empty($branchGroups[$id])) $branchGroups[$id]['0'] = '';
foreach($branchGroups[$id] as $branch => $branchName)
{