From cb146c8486ea4c9b288c2e915b6c47fee2135f75 Mon Sep 17 00:00:00 2001
From: Joas Schilling <coding@schilljs.com>
Date: Fri, 4 Sep 2020 15:21:48 +0200
Subject: [PATCH] Allow additional personal settings via normal registration

Signed-off-by: Joas Schilling <coding@schilljs.com>
---
 lib/private/Settings/Manager.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/private/Settings/Manager.php b/lib/private/Settings/Manager.php
index b775e364c39..93291de6bfd 100644
--- a/lib/private/Settings/Manager.php
+++ b/lib/private/Settings/Manager.php
@@ -261,7 +261,8 @@ class Manager implements IManager {
 		$sections = [];
 
 		$legacyForms = \OC_App::getForms('personal');
-		if (!empty($legacyForms) && $this->hasLegacyPersonalSettingsToRender($legacyForms)) {
+		if ((!empty($legacyForms) && $this->hasLegacyPersonalSettingsToRender($legacyForms))
+			|| count($this->getPersonalSettings('additional')) > 1) {
 			$sections[98] = [new Section('additional', $this->l->t('Additional settings'), 0, $this->url->imagePath('core', 'actions/settings-dark.svg'))];
 		}
 
-- 
GitLab