mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 17:18:48 -04:00
Merge pull request #54541 from nextcloud/fixAppManagerNullObjs
fix(AppManager): Argument must be of type array|object
This commit is contained in:
commit
4d65b91b06
1 changed files with 6 additions and 4 deletions
|
|
@ -992,10 +992,12 @@ class AppManager implements IAppManager {
|
|||
|
||||
public function isBackendRequired(string $backend): bool {
|
||||
foreach ($this->appInfos as $appInfo) {
|
||||
foreach ($appInfo['dependencies']['backend'] as $appBackend) {
|
||||
if ($backend === $appBackend) {
|
||||
return true;
|
||||
}
|
||||
if (
|
||||
isset($appInfo['dependencies']['backend'])
|
||||
&& is_array($appInfo['dependencies']['backend'])
|
||||
&& in_array($backend, $appInfo['dependencies']['backend'], true)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue