Code

Fixed implementation of patch from 'bcooksley', #1024
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 30 Aug 2010 06:45:44 +0000 (06:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 30 Aug 2010 06:45:44 +0000 (06:45 +0000)
-I messed things up here, thanks for the notice.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19491 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_pluglist.inc

index d23713a55f6b69fd2d7ec73fbc41650cebe51530..6bb735263dbf740e71486335e6bebb4c169d9904 100644 (file)
@@ -212,14 +212,14 @@ class pluglist
               unset($this->config->data['MENU'][$section][$id]); 
             }
           }
+
+          // Remove empty sections 
+          if(count($this->config->data['MENU'][$section]) == 0){ 
+              unset($this->config->data['MENU'][$section]); 
+          } 
         }
       }
 
-      // Remove empty sections 
-      if(count($this->config->data['MENU'][$section]) == 0){ 
-          unset($this->config->data['MENU'][$section]); 
-      } 
-
       $disabledPlugins = $this->config->configRegistry->getDisabledPlugins();
 
       $cfg= $this->config->data['MENU'];