diff options
Diffstat (limited to 'settings/ajax')
-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(); } |