API/catchupFeed: properly pass is_cat as bool
This commit is contained in:
parent
1ea177491f
commit
d6f604c06c
|
@ -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"]))
|
||||||
|
|
Loading…
Reference in New Issue