Make list_id parameter mandatory in api/lists/statuses
This commit is contained in:
parent
6401eb988b
commit
5d8d62015c
1 changed files with 3 additions and 0 deletions
|
@ -3355,6 +3355,9 @@ function api_lists_statuses($type)
|
|||
|
||||
$user_info = api_get_user($a);
|
||||
// get last newtork messages
|
||||
if (!x($_REQUEST, 'list_id')) {
|
||||
throw new BadRequestException('list_id not specified');
|
||||
}
|
||||
|
||||
// params
|
||||
$count = (x($_REQUEST, 'count') ? $_REQUEST['count'] : 20);
|
||||
|
|
Loading…
Reference in a new issue