]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix Core's OCSController response 807/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 10 Aug 2016 18:53:13 +0000 (20:53 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 10 Aug 2016 18:53:13 +0000 (20:53 +0200)
core/Controller/OCSController.php

index d5783ae32e999a4922fa51db11b73b24ad158f36..8eee52096c20a4667adff61eff7ec64a07f1c742 100644 (file)
@@ -69,7 +69,7 @@ class OCSController extends \OCP\AppFramework\OCSController {
 
                $result['capabilities'] = $this->capabilitiesManager->getCapabilities();
 
-               return new DataResponse(['data' => $result]);
+               return new DataResponse($result);
        }
 
        /**
@@ -83,6 +83,6 @@ class OCSController extends \OCP\AppFramework\OCSController {
                        'display-name' => $userObject->getDisplayName(),
                        'email' => $userObject->getEMailAddress(),
                ];
-               return new DataResponse(['data' => $data]);
+               return new DataResponse($data);
        }
 }