From: hickert Date: Fri, 27 Aug 2010 15:45:15 +0000 (+0000) Subject: Applied patch from 'bcooksley' #1024 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=32f7610628faef9829653c4b44c64159e25adaca;p=gosa.git Applied patch from 'bcooksley' #1024 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19487 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_pluglist.inc b/gosa-core/include/class_pluglist.inc index 18cf1a1ee..0e0254201 100644 --- a/gosa-core/include/class_pluglist.inc +++ b/gosa-core/include/class_pluglist.inc @@ -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'];