فهرست منبع

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;