浏览代码

Merge pull request #211 from e-weimann/patch-1

unset empty $groups[$name] for the dashboard
Thomas 14 年之前
父节点
当前提交
3a7f4297c8
共有 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);
             }
+
+            if (empty($groups[$name])) {
+                unset($groups[$name]);
+            }
         }
 
         return $groups;