diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-05-20 18:07:24 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-05-20 18:07:24 +0200 |
commit | 8f11d2a39b7eef8120fec918c4e2e4f02bcbd633 (patch) | |
tree | 94a7eaba00649cf76eeae378ca63f7ace9e8b664 /lib/private/Settings/Manager.php | |
parent | ae7f89fd9f2bb87c0254f5fa087d0d9472612644 (diff) | |
download | nextcloud-server-8f11d2a39b7eef8120fec918c4e2e4f02bcbd633.tar.gz nextcloud-server-8f11d2a39b7eef8120fec918c4e2e4f02bcbd633.zip |
Only show sharing section if it has content
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Settings/Manager.php')
-rw-r--r-- | lib/private/Settings/Manager.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Settings/Manager.php b/lib/private/Settings/Manager.php index 42ec16e223b..7281d7bf72e 100644 --- a/lib/private/Settings/Manager.php +++ b/lib/private/Settings/Manager.php @@ -171,6 +171,10 @@ class Manager implements IManager { continue; } + if ($setting->getSection() === null) { + continue; + } + if (!isset($this->settings[$settingsType][$setting->getSection()])) { $this->settings[$settingsType][$setting->getSection()] = []; } |