Merge pull request #4395 from nextcloud/fix_4394

Do not show empty admin sections
This commit is contained in:
Lukas Reschke 2017-04-19 17:01:27 +02:00 committed by GitHub
commit e91b8b452c
1 changed files with 4 additions and 0 deletions

View File

@ -135,6 +135,10 @@ class AdminSettingsController extends Controller {
/** @var \OC\Settings\Section[] $prioritizedSections */
foreach($sections as $prioritizedSections) {
foreach ($prioritizedSections as $section) {
if (empty($this->settingsManager->getAdminSettings($section->getID()))) {
continue;
}
$icon = '';
if ($section instanceof IIconSection) {
$icon = $section->getIcon();