Browse Source

unset empty $groups[$name] for the dashboard

e-weimann 14 năm trước cách đây
mục cha
commit
5f3bc35803
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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;