Skip to content
Snippets Groups Projects
Commit a39f3fdb authored by Tom Needham's avatar Tom Needham
Browse files

Return result object when only one successful response is returned

parent 79005557
No related branches found
No related tags found
No related merge requests found
......@@ -167,11 +167,11 @@ class OC_API {
// Which reponse code should we return?
// Maybe any that are not OC_API::RESPOND_SERVER_ERROR
$response = reset($shipped['failed']);
return $response;
return $response['response'];
} elseif(!empty($thirdparty['failed'])) {
// Return the third party failure result
$response = reset($thirdparty['failed']);
return $response;
return $response['response'];
} else {
$responses = $thirdparty['succeeded'];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment