summaryrefslogtreecommitdiffstats
path: root/lib/private/api.php
diff options
context:
space:
mode:
authortomneedham <tom@owncloud.com>2013-11-14 01:10:56 +0000
committertomneedham <tom@owncloud.com>2013-11-14 01:10:56 +0000
commita39f3fdbf9fb20d9fa4c9cbba4765f9989f850ec (patch)
treeff3914befd55746aaeaf34f548e28a218fe802e7 /lib/private/api.php
parent790055571db1a7ebb0cd93d0ec8d1a5e75cbc702 (diff)
downloadnextcloud-server-a39f3fdbf9fb20d9fa4c9cbba4765f9989f850ec.tar.gz
nextcloud-server-a39f3fdbf9fb20d9fa4c9cbba4765f9989f850ec.zip
Return result object when only one successful response is returned
Diffstat (limited to 'lib/private/api.php')
-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'];
}