ShuanghongS il y a 9 mois
Parent
commit
e4aae4b5b1
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      main_new_version.php

+ 3 - 1
main_new_version.php

@@ -105,7 +105,9 @@ switch ($action) {
             }
             //$children[] = array("index" =>$index.'-2',"label" =>"System Settings","path"=>"/SystemSettings");
             $systemManagement["children"] = $children;
-            $menuList[] = $systemManagement;
+            if (!empty($children)){
+                $menuList[] = $systemManagement;
+            }
         }
         common::echo_json_encode(200, $menuList);
         exit();