Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Handle non existing settings again
See #28189 (comment)

Signed-off-by: Carl Schwan <[email protected]>
  • Loading branch information
CarlSchwan committed May 30, 2022
commit 63f589109bb114f285ad64ce8bc5a9ddbc4521e9
9 changes: 7 additions & 2 deletions lib/private/Settings/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,13 @@ protected function getSections(string $type): array {
}

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();

Expand Down