mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 03:25:55 +00:00
API/catchupFeed: properly pass is_cat as bool
This commit is contained in:
@@ -417,7 +417,7 @@ class API extends Handler {
|
|||||||
|
|
||||||
function catchupFeed(): bool {
|
function catchupFeed(): bool {
|
||||||
$feed_id = clean($_REQUEST["feed_id"]);
|
$feed_id = clean($_REQUEST["feed_id"]);
|
||||||
$is_cat = clean($_REQUEST["is_cat"]);
|
$is_cat = self::_param_to_bool($_REQUEST["is_cat"] ?? false);
|
||||||
$mode = clean($_REQUEST["mode"] ?? "");
|
$mode = clean($_REQUEST["mode"] ?? "");
|
||||||
|
|
||||||
if (!in_array($mode, ["all", "1day", "1week", "2week"]))
|
if (!in_array($mode, ["all", "1day", "1week", "2week"]))
|
||||||
|
|||||||
Reference in New Issue
Block a user