summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-02-17 15:36:16 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-02-17 16:05:23 +0100
commite4077672e15809d04df4fd2af3df998dfed04292 (patch)
tree363626da1ed8b7905852d47d8cc47e95d6243860 /settings
parent2e15c0d871860df4b9be55a7c67e29f76aeb8a7c (diff)
downloadnextcloud-server-e4077672e15809d04df4fd2af3df998dfed04292.tar.gz
nextcloud-server-e4077672e15809d04df4fd2af3df998dfed04292.zip
Use empty array as group list in OC_App::enable
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'settings')
-rw-r--r--settings/ajax/enableapp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php
index 4014664481a..edcccf9b0b9 100644
--- a/settings/ajax/enableapp.php
+++ b/settings/ajax/enableapp.php
@@ -34,7 +34,7 @@ if ($lastConfirm < (time() - 30 * 60 + 15)) { // allow 15 seconds delay
exit();
}
-$groups = isset($_POST['groups']) ? (array)$_POST['groups'] : null;
+$groups = isset($_POST['groups']) ? (array)$_POST['groups'] : [];
$appIds = isset($_POST['appIds']) ? (array)$_POST['appIds'] : [];
try {