Code

Applied patch from 'bcooksley' #1024
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Aug 2010 15:45:15 +0000 (15:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Aug 2010 15:45:15 +0000 (15:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19487 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_pluglist.inc

index 18cf1a1ee9f4715a41e40ebf6502c2a39bb64dde..0e025420105cc363258e026d2c753f2199146e21 100644 (file)
@@ -215,6 +215,11 @@ class pluglist
         }
       }
 
+      // 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'];