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