From 70a2c3727aba056ac2a953bc0264524f15f7dd43 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 30 Aug 2010 06:45:44 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_pluglist.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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']; -- 2.30.2