[Pkg-owncloud-commits] [owncloud] 29/111: Return result object when only one successful response is returned
David Prévot
taffit at moszumanska.debian.org
Wed Nov 20 21:38:37 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit a39f3fdbf9fb20d9fa4c9cbba4765f9989f850ec
Author: tomneedham <tom at owncloud.com>
Date: Thu Nov 14 01:10:56 2013 +0000
Return result object when only one successful response is returned
---
lib/private/api.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/private/api.php b/lib/private/api.php
index 913b3ff..76e0095 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'];
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list