From 32f7610628faef9829653c4b44c64159e25adaca Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 27 Aug 2010 15:45:15 +0000 Subject: [PATCH] Applied patch from 'bcooksley' #1024 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19487 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_pluglist.inc | 5 +++++ 1 file changed, 5 insertions(+) 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']; -- 2.30.2