mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fix(AppManager): Argument must be of type array|object
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
parent
4636e165e5
commit
b36e4e3824
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