1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:25:59 +00:00

Address PHPStan warnings in 'classes/feeds.php'.

Also some minor related tweaks in other classes.
This commit is contained in:
wn_
2021-11-12 04:48:06 +00:00
parent 5606e38bff
commit 763515de79
4 changed files with 191 additions and 124 deletions

View File

@@ -409,8 +409,8 @@ class API extends Handler {
function catchupFeed() {
$feed_id = clean($_REQUEST["feed_id"]);
$is_cat = clean($_REQUEST["is_cat"]);
@$mode = clean($_REQUEST["mode"]);
$is_cat = clean($_REQUEST["is_cat"]) == "true";
$mode = clean($_REQUEST['mode'] ?? "");
if (!in_array($mode, ["all", "1day", "1week", "2week"]))
$mode = "all";