mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #32655 from nextcloud/fix/handle-non-existing-settings
Handle non existing settings again
This commit is contained in:
commit
e86bcc8953
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