mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:35:56 +00:00
changed skip and limit to coalesce to 0 instead of ""
This commit is contained in:
@@ -188,11 +188,11 @@ class API extends Handler {
|
||||
|
||||
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;
|
||||
|
||||
$offset = (int)clean($_REQUEST["skip"] ?? "");
|
||||
$offset = (int)clean($_REQUEST["skip"] ?? 0);
|
||||
$filter = clean($_REQUEST["filter"] ?? "");
|
||||
$is_cat = self::_param_to_bool(clean($_REQUEST["is_cat"] ?? false));
|
||||
$show_excerpt = self::_param_to_bool(clean($_REQUEST["show_excerpt"] ?? false));
|
||||
|
||||
Reference in New Issue
Block a user