From c6b337c3ddd5c649ba873240242c8678c756c058 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Sun, 5 Aug 2012 01:41:24 +0200 Subject: [PATCH] Return possibly changed appid. --- settings/ajax/enableapp.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php index bd53a50210..fe3922fa02 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(); }