Fix OCSController
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
e945f2bc3a
commit
75771a108b
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue