diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-09-02 12:05:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 12:05:51 +0200 |
commit | 2397ea72196de42a79e2a5873dcbb07db698f348 (patch) | |
tree | cfe0e7e4f6ec10a665eb0a40eae103bafc49203f /lib/private/Settings | |
parent | 046d5451b15d46581cde846676e0b6d631fedbb7 (diff) | |
parent | 30be6ad605f3e451c17de3df74ec3832e1758afe (diff) | |
download | nextcloud-server-2397ea72196de42a79e2a5873dcbb07db698f348.tar.gz nextcloud-server-2397ea72196de42a79e2a5873dcbb07db698f348.zip |
Merge branch 'master' into fix/setting/accessibility-title
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/private/Settings')
-rw-r--r-- | lib/private/Settings/Manager.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/Settings/Manager.php b/lib/private/Settings/Manager.php index ed331c59725..44f1df09c15 100644 --- a/lib/private/Settings/Manager.php +++ b/lib/private/Settings/Manager.php @@ -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(); |