Merge pull request #19993 from nextcloud/bug/19991/check-if-value-is-array

Make sure app_install_overwrite is an array
This commit is contained in:
Roeland Jago Douma 2020-03-20 08:43:24 +01:00 committed by GitHub
commit 61a02b89c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -271,6 +271,10 @@ class AppSettingsController extends Controller {
}
$ignoreMaxApps = $this->config->getSystemValue('app_install_overwrite', []);
if (!is_array($ignoreMaxApps)) {
$this->logger->warning('The value given for app_install_overwrite is not an array. Ignoring...');
$ignoreMaxApps = [];
}
$ignoreMax = in_array($appData['id'], $ignoreMaxApps);
// analyse dependencies