api: fix some php8 warnings (2)

This commit is contained in:
Andrew Dolgov 2021-02-09 08:16:04 +03:00
parent 63a90d26f3
commit 0871a51cb4
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class API extends Handler {
function getFeeds() { function getFeeds() {
$cat_id = clean($_REQUEST["cat_id"]); $cat_id = clean($_REQUEST["cat_id"]);
$unread_only = self::param_to_bool(clean($_REQUEST["unread_only"])); $unread_only = self::param_to_bool(clean($_REQUEST["unread_only"] ?? 0));
$limit = (int) clean($_REQUEST["limit"] ?? 0); $limit = (int) clean($_REQUEST["limit"] ?? 0);
$offset = (int) clean($_REQUEST["offset"] ?? 0); $offset = (int) clean($_REQUEST["offset"] ?? 0);
$include_nested = self::param_to_bool(clean($_REQUEST["include_nested"])); $include_nested = self::param_to_bool(clean($_REQUEST["include_nested"]));