mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 01:00:50 -04:00
Handle non existing settings again
See https://github.com/nextcloud/server/pull/28189#issuecomment-1140874991 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
9a499a2f63
commit
626ae0c1bb
1 changed files with 7 additions and 2 deletions
|
|
@ -126,8 +126,13 @@ class Manager implements IManager {
|
|||
}
|
||||
|
||||
foreach (array_unique($this->sectionClasses[$type]) as $index => $class) {
|
||||
/** @var IIconSection $section */
|
||||
$section = \OC::$server->get($class);
|
||||
try {
|
||||
/** @var IIconSection $section */
|
||||
$section = $this->container->get($class);
|
||||
} catch (QueryException $e) {
|
||||
$this->log->info($e->getMessage(), ['exception' => $e]);
|
||||
continue;
|
||||
}
|
||||
|
||||
$sectionID = $section->getID();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue