Sfoglia il codice sorgente

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

unset empty $groups[$name] for the dashboard
Thomas 14 anni fa
parent
commit
3a7f4297c8
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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;