Skip to content
Snippets Groups Projects
Unverified Commit 73643fe7 authored by Daniel Kesselberg's avatar Daniel Kesselberg
Browse files

Make sure app_install_overwrite is an array


otherwise in_array will complain.

Signed-off-by: default avatarDaniel Kesselberg <mail@danielkesselberg.de>
parent 48bdd322
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment