Merge pull request #54549 from nextcloud/backport/54541/stable31

[stable31] fix(AppManager): Argument must be of type array|object
This commit is contained in:
Git'Fellow 2025-08-21 09:35:32 +02:00 committed by GitHub
commit ae0cf2a553
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -916,10 +916,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;
}
}