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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user