diff options
Diffstat (limited to 'lib/private/App/AppManager.php')
-rw-r--r-- | lib/private/App/AppManager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/App/AppManager.php b/lib/private/App/AppManager.php index d969f1d0260..5f243a1250e 100644 --- a/lib/private/App/AppManager.php +++ b/lib/private/App/AppManager.php @@ -237,7 +237,7 @@ class AppManager implements IAppManager { public function isType(string $app, array $types): bool { $appTypes = $this->getAppTypes($app); foreach ($types as $type) { - if (array_search($type, $appTypes) !== false) { + if (in_array($type, $appTypes, true)) { return true; } } @@ -253,7 +253,7 @@ class AppManager implements IAppManager { private function getAppTypes(string $app): array { //load the cache if (count($this->appTypes) === 0) { - $this->appTypes = \OC::$server->getAppConfig()->getValues(false, 'types'); + $this->appTypes = $this->appConfig->getValues(false, 'types') ?: []; } if (isset($this->appTypes[$app])) { |