Explorar el Código

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

unset empty $groups[$name] for the dashboard
Thomas hace 14 años
padre
commit
3a7f4297c8
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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;