From 8f11d2a39b7eef8120fec918c4e2e4f02bcbd633 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Mon, 20 May 2019 18:07:24 +0200 Subject: Only show sharing section if it has content MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/private/Settings/Manager.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/private/Settings/Manager.php') 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()] = []; } -- cgit v1.2.3