From e4077672e15809d04df4fd2af3df998dfed04292 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Sat, 17 Feb 2018 15:36:16 +0100 Subject: Use empty array as group list in OC_App::enable Signed-off-by: Morris Jobke --- settings/ajax/enableapp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'settings') 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 { -- cgit v1.2.3