diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-08-05 01:41:24 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-08-05 01:42:17 +0200 |
commit | c6b337c3ddd5c649ba873240242c8678c756c058 (patch) | |
tree | 3eca3c84dfc6718541bf71281c0991fc4ebaf964 | |
parent | cc445e4e477944a680bb19919cbfd0330d0f7851 (diff) | |
download | nextcloud-server-c6b337c3ddd5c649ba873240242c8678c756c058.tar.gz nextcloud-server-c6b337c3ddd5c649ba873240242c8678c756c058.zip |
Return possibly changed appid.
-rw-r--r-- | settings/ajax/enableapp.php | 7 |
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(); } |