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:
commit
61a02b89c5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue