summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorsam302psu <[email protected]>2021-03-02 18:44:13 +0300
committersam302psu <[email protected]>2021-03-02 18:44:13 +0300
commit57fdf032e95a4af1904827fc1a0234127e040455 (patch)
tree092a1099df9a83c366210f7925da469784b13301 /classes/api.php
parent8f8142df29fbc43fc277b268524560ef93e70b64 (diff)
changed skip and limit to coalesce to 0 instead of ""
Diffstat (limited to 'classes/api.php')
-rwxr-xr-xclasses/api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/api.php b/classes/api.php
index 7a11fbd19..952c97166 100755
--- a/classes/api.php
+++ b/classes/api.php
@@ -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));