* Add key 0 to module pairs.

This commit is contained in:
Yagami
2019-11-27 10:35:29 +08:00
parent c961d47610
commit d9531f33e7
+2 -1
View File
@@ -41,7 +41,8 @@ class treeModel extends model
->andWhere('deleted')->eq('0')
->fetchAll();
$pairs = array();
$pairs = array();
$pairs[0] = '/';
foreach($modules as $module)
{
if($module->parent == '0')