diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-07-19 16:42:17 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-01 08:20:15 +0200 |
commit | 75771a108bf6d31819db47b1d9f3391b3183c590 (patch) | |
tree | c2ef921ead699fc0d668ad4cc75e055bc5cff94e /core/Controller | |
parent | e945f2bc3a7450168a4b95fd9236459b78b5a946 (diff) | |
download | nextcloud-server-75771a108bf6d31819db47b1d9f3391b3183c590.tar.gz nextcloud-server-75771a108bf6d31819db47b1d9f3391b3183c590.zip |
Fix OCSController
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/Controller')
-rw-r--r-- | core/Controller/OCSController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Controller/OCSController.php b/core/Controller/OCSController.php index 35eac3a3d8b..ff939f71a4f 100644 --- a/core/Controller/OCSController.php +++ b/core/Controller/OCSController.php @@ -122,11 +122,11 @@ class OCSController extends \OCP\AppFramework\OCSController { ]); } - $response = new DataResponse(null, 102); + $response = new DataResponse([], 102); $response->throttle(); return $response; } - return new DataResponse(null, 101); + return new DataResponse([], 101); } /** @@ -146,6 +146,6 @@ class OCSController extends \OCP\AppFramework\OCSController { return new DataResponse($data); } - return new DataResponse('User not found', 404); + return new DataResponse(['User not found'], 404); } } |