We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cfb65a2 + ee84379 commit ae0cf2aCopy full SHA for ae0cf2a
lib/private/App/AppManager.php
@@ -916,10 +916,12 @@ public function setDefaultApps(array $defaultApps): void {
916
917
public function isBackendRequired(string $backend): bool {
918
foreach ($this->appInfos as $appInfo) {
919
- foreach ($appInfo['dependencies']['backend'] as $appBackend) {
920
- if ($backend === $appBackend) {
921
- return true;
922
- }
+ if (
+ isset($appInfo['dependencies']['backend'])
+ && is_array($appInfo['dependencies']['backend'])
+ && in_array($backend, $appInfo['dependencies']['backend'], true)
923
+ ) {
924
+ return true;
925
}
926
927
0 commit comments