return a message when app could not be enabled

This commit is contained in:
Jörn Friedrich Dreyer 2012-09-12 12:02:39 +02:00
parent c5f9b887ff
commit 62d8202d59
1 changed files with 1 additions and 1 deletions

View File

@ -10,5 +10,5 @@ $appid = OC_App::enable($_POST['appid']);
if($appid !== false) {
OC_JSON::success(array('data' => array('appid' => $appid)));
} else {
OC_JSON::error();
OC_JSON::error(array("data" => array( "message" => $l->t("Could not enable app. ") )));
}