]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't log "duplicate section" for the shared "connected-accounts" section 23016/head
authorJoas Schilling <coding@schilljs.com>
Wed, 23 Sep 2020 10:23:06 +0000 (12:23 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 23 Sep 2020 10:25:08 +0000 (12:25 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Settings/Manager.php

index 93291de6bfd650563f673bcdf62e547af19cba06..65193e2cac8e01418b106a29461e636785f15019 100644 (file)
@@ -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;
                        }