summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-09 08:16:04 +0300
committerAndrew Dolgov <[email protected]>2021-02-09 08:16:04 +0300
commit0871a51cb4ba81277d8ce898bbdbfc6f0ae0fcca (patch)
treeb2faeb84404ccfea024ecd1367275009cb882b72 /classes/api.php
parent63a90d26f3cbfd1416ebde29c5c7b5dd0d3d00e5 (diff)
api: fix some php8 warnings (2)
Diffstat (limited to 'classes/api.php')
-rwxr-xr-xclasses/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php
index 109fce603..4dd92be88 100755
--- a/classes/api.php
+++ b/classes/api.php
@@ -117,7 +117,7 @@ class API extends Handler {
function getFeeds() {
$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);
$offset = (int) clean($_REQUEST["offset"] ?? 0);
$include_nested = self::param_to_bool(clean($_REQUEST["include_nested"]));