From 26603c7cdda0b551c248edacd5fb92c69622cdbc Mon Sep 17 00:00:00 2001 From: Joas Schilling 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 --- 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 93291de6bf..65193e2cac 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; }