]> source.dussan.org Git - nextcloud-server.git/commitdiff
Return result object when only one successful response is returned
authortomneedham <tom@owncloud.com>
Thu, 14 Nov 2013 01:10:56 +0000 (01:10 +0000)
committertomneedham <tom@owncloud.com>
Thu, 14 Nov 2013 01:10:56 +0000 (01:10 +0000)
lib/private/api.php

index 913b3ff0a184193c8fe1787df0029dcc053f12b5..76e00958a245ab54f1d25b36296d6501d369dd29 100644 (file)
@@ -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'];
                }