diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-03-16 22:33:47 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-03-16 22:33:47 +0100 |
commit | 73643fe70b2f7ca59a30f37f36b0932de452e176 (patch) | |
tree | 913723b769e5ac5233568e69d862883c0747b16b /apps/settings | |
parent | 48bdd322a210e5e80ad1bb80ecbe86fad5ba28d1 (diff) | |
download | nextcloud-server-73643fe70b2f7ca59a30f37f36b0932de452e176.tar.gz nextcloud-server-73643fe70b2f7ca59a30f37f36b0932de452e176.zip |
Make sure app_install_overwrite is an array
otherwise in_array will complain.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/lib/Controller/AppSettingsController.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/settings/lib/Controller/AppSettingsController.php b/apps/settings/lib/Controller/AppSettingsController.php index a49b57185c3..47067a9fcf5 100644 --- a/apps/settings/lib/Controller/AppSettingsController.php +++ b/apps/settings/lib/Controller/AppSettingsController.php @@ -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 |