summaryrefslogtreecommitdiffstats
path: root/lib/private/Settings/Manager.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-05-20 18:07:24 +0200
committerJulius Härtl <jus@bitgrid.net>2019-05-20 18:07:24 +0200
commit8f11d2a39b7eef8120fec918c4e2e4f02bcbd633 (patch)
tree94a7eaba00649cf76eeae378ca63f7ace9e8b664 /lib/private/Settings/Manager.php
parentae7f89fd9f2bb87c0254f5fa087d0d9472612644 (diff)
downloadnextcloud-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.php4
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()] = [];
}