Merge pull request #3121 from owncloud/ocs_fix_api_response

Fix the api response when a shipped and third party app both fail.
remotes/origin/stable6
Lukas Reschke 12 years ago
commit 51a1f41225
  1. 4
      lib/api.php

@ -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

Loading…
Cancel
Save