Don't log "duplicate section" for the shared "connected-accounts" section
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
7edced3807
commit
26603c7cdd
|
@ -122,7 +122,7 @@ class Manager implements IManager {
|
||||||
|
|
||||||
$sectionID = $section->getID();
|
$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]);
|
$this->log->logException(new \InvalidArgumentException('Section with the same ID already registered: ' . $sectionID . ', class: ' . $class), ['level' => ILogger::INFO]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue