summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-07-19 16:42:17 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-08-01 08:20:15 +0200
commit75771a108bf6d31819db47b1d9f3391b3183c590 (patch)
treec2ef921ead699fc0d668ad4cc75e055bc5cff94e /core/Controller
parente945f2bc3a7450168a4b95fd9236459b78b5a946 (diff)
downloadnextcloud-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.php6
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);
}
}