From: Joas Schilling Date: Wed, 23 Sep 2020 10:23:06 +0000 (+0200) Subject: Don't log "duplicate section" for the shared "connected-accounts" section X-Git-Tag: v21.0.0beta1~535^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F23016%2Fhead;p=nextcloud-server.git Don't log "duplicate section" for the shared "connected-accounts" section Signed-off-by: Joas Schilling --- 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; }