瀏覽代碼

unset empty $groups[$name] for the dashboard

e-weimann 14 年之前
父節點
當前提交
5f3bc35803
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Admin/Pool.php

+ 4 - 0
Admin/Pool.php

@@ -57,6 +57,10 @@ class Pool
 
 
                 $groups[$name][$id] = $this->container->get($id);
                 $groups[$name][$id] = $this->container->get($id);
             }
             }
+
+            if (empty($groups[$name])) {
+                unset($groups[$name]);
+            }
         }
         }
 
 
         return $groups;
         return $groups;