summaryrefslogtreecommitdiffstats
path: root/lib/private/Settings
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-09-23 12:23:06 +0200
committerJoas Schilling <coding@schilljs.com>2020-09-23 12:25:08 +0200
commit6c6d640e396ed03403940a135c51fc78774742c4 (patch)
treedfa4402a90843052c0063a978771194761d84cc1 /lib/private/Settings
parent7d0602792280f88af6867db0131d1bf8984b2c2c (diff)
downloadnextcloud-server-6c6d640e396ed03403940a135c51fc78774742c4.tar.gz
nextcloud-server-6c6d640e396ed03403940a135c51fc78774742c4.zip
Don't log "duplicate section" for the shared "connected-accounts" section
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Settings')
-rw-r--r--lib/private/Settings/Manager.php2
1 files changed, 1 insertions, 1 deletions
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;
}