summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-08-05 01:41:24 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-08-05 01:42:17 +0200
commitc6b337c3ddd5c649ba873240242c8678c756c058 (patch)
tree3eca3c84dfc6718541bf71281c0991fc4ebaf964
parentcc445e4e477944a680bb19919cbfd0330d0f7851 (diff)
downloadnextcloud-server-c6b337c3ddd5c649ba873240242c8678c756c058.tar.gz
nextcloud-server-c6b337c3ddd5c649ba873240242c8678c756c058.zip
Return possibly changed appid.
-rw-r--r--settings/ajax/enableapp.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php
index bd53a50210c..fe3922fa02b 100644
--- a/settings/ajax/enableapp.php
+++ b/settings/ajax/enableapp.php
@@ -6,8 +6,9 @@ OC_JSON::checkAdminUser();
OCP\JSON::callCheck();
OC_JSON::setContentTypeHeader();
-if(OC_App::enable($_POST['appid'])){
- OC_JSON::success();
-}else{
+$appid = OC_App::enable($_POST['appid']);
+if($appid !== false) {
+ OC_JSON::success(array('data' => array('appid' => $appid)));
+} else {
OC_JSON::error();
}