Merge pull request #2228 from nextcloud/use-appid-instead-of-app-element

Use app ID instead of object
This commit is contained in:
Roeland Jago Douma 2016-11-22 10:06:33 +01:00 committed by GitHub
commit 9c52f16dbb
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ try {
$appId = (string)$_POST['appid'];
$appId = OC_App::cleanAppId($appId);
$app->enable($appId, $groups);
OC_JSON::success(['data' => ['update_required' => \OC_App::shouldUpgrade($app)]]);
OC_JSON::success(['data' => ['update_required' => \OC_App::shouldUpgrade($appId)]]);
} catch (Exception $e) {
\OCP\Util::writeLog('core', $e->getMessage(), \OCP\Util::ERROR);
OC_JSON::error(array("data" => array("message" => $e->getMessage()) ));