From: hickert Date: Mon, 30 Aug 2010 06:45:44 +0000 (+0000) Subject: Fixed implementation of patch from 'bcooksley', #1024 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=70a2c3727aba056ac2a953bc0264524f15f7dd43;p=gosa.git Fixed implementation of patch from 'bcooksley', #1024 -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 --- diff --git a/gosa-core/include/class_pluglist.inc b/gosa-core/include/class_pluglist.inc index d23713a55..6bb735263 100644 --- a/gosa-core/include/class_pluglist.inc +++ b/gosa-core/include/class_pluglist.inc @@ -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'];