diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-05-21 10:33:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-21 10:33:07 +0200 |
commit | ac92603014268a13a9b31beb8bd9dd26cbd84282 (patch) | |
tree | 346c4577801b17f7e7cb8e72cc585124e178ad55 /lib | |
parent | 50dbdeea46b3891fad9793899ddcdcf20586f2d7 (diff) | |
parent | 8f11d2a39b7eef8120fec918c4e2e4f02bcbd633 (diff) | |
download | nextcloud-server-ac92603014268a13a9b31beb8bd9dd26cbd84282.tar.gz nextcloud-server-ac92603014268a13a9b31beb8bd9dd26cbd84282.zip |
Merge pull request #15638 from nextcloud/bugfix/7965/sharing-hide-if-empty
Only show sharing section if it has content
Diffstat (limited to 'lib')
-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()] = []; } |