Fix OCSController

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-07-19 16:42:17 +02:00
parent e945f2bc3a
commit 75771a108b
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -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);
}
}