From 4032c7b685fe082990b9fefe6ef390182de70c7c Mon Sep 17 00:00:00 2001
From: Lukas Reschke <lukas@owncloud.com>
Date: Fri, 13 Feb 2015 14:23:22 +0100
Subject: [PATCH] This is an array

---
 settings/ajax/enableapp.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php
index fcb8b47ea1..e4bb1d41c1 100644
--- a/settings/ajax/enableapp.php
+++ b/settings/ajax/enableapp.php
@@ -3,7 +3,7 @@
 OC_JSON::checkAdminUser();
 OCP\JSON::callCheck();
 
-$groups = isset($_POST['groups']) ? (string)$_POST['groups'] : null;
+$groups = isset($_POST['groups']) ? (array)$_POST['groups'] : null;
 
 try {
 	OC_App::enable(OC_App::cleanAppId((string)$_POST['appid']), $groups);
-- 
GitLab