Merge pull request #4395 from nextcloud/fix_4394
Do not show empty admin sections
This commit is contained in:
commit
e91b8b452c
|
@ -135,6 +135,10 @@ class AdminSettingsController extends Controller {
|
||||||
/** @var \OC\Settings\Section[] $prioritizedSections */
|
/** @var \OC\Settings\Section[] $prioritizedSections */
|
||||||
foreach($sections as $prioritizedSections) {
|
foreach($sections as $prioritizedSections) {
|
||||||
foreach ($prioritizedSections as $section) {
|
foreach ($prioritizedSections as $section) {
|
||||||
|
if (empty($this->settingsManager->getAdminSettings($section->getID()))) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$icon = '';
|
$icon = '';
|
||||||
if ($section instanceof IIconSection) {
|
if ($section instanceof IIconSection) {
|
||||||
$icon = $section->getIcon();
|
$icon = $section->getIcon();
|
||||||
|
|
Loading…
Reference in New Issue