changed skip and limit to coalesce to 0 instead of ""
This commit is contained in:
parent
8f8142df29
commit
57fdf032e9
|
@ -188,11 +188,11 @@ class API extends Handler {
|
||||||
|
|
||||||
if (is_numeric($feed_id)) $feed_id = (int) $feed_id;
|
if (is_numeric($feed_id)) $feed_id = (int) $feed_id;
|
||||||
|
|
||||||
$limit = (int)clean($_REQUEST["limit"] ?? "");
|
$limit = (int)clean($_REQUEST["limit"] ?? 0 );
|
||||||
|
|
||||||
if (!$limit || $limit >= 200) $limit = 200;
|
if (!$limit || $limit >= 200) $limit = 200;
|
||||||
|
|
||||||
$offset = (int)clean($_REQUEST["skip"] ?? "");
|
$offset = (int)clean($_REQUEST["skip"] ?? 0);
|
||||||
$filter = clean($_REQUEST["filter"] ?? "");
|
$filter = clean($_REQUEST["filter"] ?? "");
|
||||||
$is_cat = self::_param_to_bool(clean($_REQUEST["is_cat"] ?? false));
|
$is_cat = self::_param_to_bool(clean($_REQUEST["is_cat"] ?? false));
|
||||||
$show_excerpt = self::_param_to_bool(clean($_REQUEST["show_excerpt"] ?? false));
|
$show_excerpt = self::_param_to_bool(clean($_REQUEST["show_excerpt"] ?? false));
|
||||||
|
|
Loading…
Reference in New Issue