From 6c6d640e396ed03403940a135c51fc78774742c4 Mon Sep 17 00:00:00 2001
From: Joas Schilling <coding@schilljs.com>
Date: Wed, 23 Sep 2020 12:23:06 +0200
Subject: [PATCH] Don't log "duplicate section" for the shared
 "connected-accounts" section

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

diff --git a/lib/private/Settings/Manager.php b/lib/private/Settings/Manager.php
index 93291de6bfd..65193e2cac8 100644
--- a/lib/private/Settings/Manager.php
+++ b/lib/private/Settings/Manager.php
@@ -122,7 +122,7 @@ class Manager implements IManager {
 
 			$sectionID = $section->getID();
 
-			if (isset($this->sections[$type][$sectionID])) {
+			if ($sectionID !== 'connected-accounts' && isset($this->sections[$type][$sectionID])) {
 				$this->log->logException(new \InvalidArgumentException('Section with the same ID already registered: ' . $sectionID . ', class: ' . $class), ['level' => ILogger::INFO]);
 				continue;
 			}
-- 
GitLab