Ver Fonte

unset empty $groups[$name] for the dashboard

e-weimann há 14 anos atrás
pai
commit
5f3bc35803
1 ficheiros alterados com 4 adições e 0 exclusões
  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;