Skip to content
Snippets Groups Projects
Commit 51a1f412 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #3121 from owncloud/ocs_fix_api_response

Fix the api response when a shipped and third party app both fail.
parents 0e5eccbd b3e74856
Branches
No related tags found
No related merge requests found
......@@ -155,11 +155,11 @@ class OC_API {
// They may have failed for different reasons (different status codes)
// Which reponse code should we return?
// Maybe any that are not OC_API::RESPOND_SERVER_ERROR
$response = $shipped['failed'][0];
$response = reset($shipped['failed']);
return $response;
} else {
// Return the third party failure result
$response = $thirdparty['failed'][0];
$response = reset($thirdparty['failed']);
return $response;
}
// Merge the successful responses
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment