index d23713a55f6b69fd2d7ec73fbc41650cebe51530..6bb735263dbf740e71486335e6bebb4c169d9904 100644 (file)
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'];