From 9544c97ffe888a16cdf58013b5a97056771eb856 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 10 Aug 2016 20:53:13 +0200 Subject: [PATCH] Fix Core's OCSController response --- core/Controller/OCSController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Controller/OCSController.php b/core/Controller/OCSController.php index d5783ae32e9..8eee52096c2 100644 --- a/core/Controller/OCSController.php +++ b/core/Controller/OCSController.php @@ -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); } } -- 2.39.5