mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #3121 from owncloud/ocs_fix_api_response
Fix the api response when a shipped and third party app both fail.
This commit is contained in:
commit
51a1f41225
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue