Skip to content

Commit

Permalink
Merge pull request #10417 from nextcloud/bugfix/noid/fix-undefined-co…
Browse files Browse the repository at this point in the history
…nstant-status-service

Fix undefined constant error for STATUS_SERVICE_UNAVAILABLE
  • Loading branch information
rullzer authored Jul 27, 2018
2 parents 7b23cf3 + 3e21033 commit 6ab9f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocs/v1.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
// since the behavior of apps or remotes are unpredictable during
// an upgrade, return a 503 directly
http_response_code(503);
$response = new \OC\OCS\Result(null, OC_Response::STATUS_SERVICE_UNAVAILABLE, 'Service unavailable');
$response = new \OC\OCS\Result(null, 503, 'Service unavailable');
OC_API::respond($response, OC_API::requestedFormat());
exit;
}
Expand Down

0 comments on commit 6ab9f3e

Please sign in to comment.