* Fix getDataStructure function result bug.

This commit is contained in:
wangyuting
2023-11-24 16:41:27 +08:00
parent 8c422a4ba0
commit 7f6313f8d3
+1 -1
View File
@@ -436,7 +436,7 @@ class deptModel extends model
}
krsort($tree);
return array_pop($tree);
return $tree ? array_pop($tree) : array();
}
/**