summaryrefslogtreecommitdiffstats
path: root/settings/ajax
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-04-25 21:06:24 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-04-26 20:07:50 +0200
commit732c92e93abfc200e4eee90a8e727ef562dc5604 (patch)
tree1ecd9e4f31efd62803c8693637fb4e845349e982 /settings/ajax
parentda67264a238d0351029b5b452aa254caa652df1c (diff)
downloadnextcloud-server-732c92e93abfc200e4eee90a8e727ef562dc5604.tar.gz
nextcloud-server-732c92e93abfc200e4eee90a8e727ef562dc5604.zip
Make disableapp.php accept arrays
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'settings/ajax')
-rw-r--r--settings/ajax/disableapp.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/settings/ajax/disableapp.php b/settings/ajax/disableapp.php
index 8edd1c1453e..9b76236a15b 100644
--- a/settings/ajax/disableapp.php
+++ b/settings/ajax/disableapp.php
@@ -36,8 +36,9 @@ if (!array_key_exists('appid', $_POST)) {
exit;
}
-$appId = (string)$_POST['appid'];
-$appId = OC_App::cleanAppId($appId);
-
-OC_App::disable($appId);
+$appIds = (array)$_POST['appid'];
+foreach($appIds as $appId) {
+ $appId = OC_App::cleanAppId($appId);
+ OC_App::disable($appId);
+}
OC_JSON::success();