summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/api.php b/lib/private/api.php
index 913b3ff0a18..76e00958a24 100644
--- a/lib/private/api.php
+++ b/lib/private/api.php
@@ -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'];
}