Better Errors
This commit is contained in:
@@ -11,8 +11,11 @@ class Users extends Api
|
||||
{
|
||||
public function get()
|
||||
{
|
||||
// Fetch and constrain all parameters.
|
||||
$page = max(0, intval(Input::get("p", 0)));
|
||||
$limit = constrain(0, 30, intval(Input::get("l", 10)));
|
||||
|
||||
// Return list of users.
|
||||
Response::json(User::list($page, $limit));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user