API/catchupFeed: properly pass is_cat as bool

This commit is contained in:
Andrew Dolgov 2021-11-18 20:02:24 +03:00
parent 1ea177491f
commit d6f604c06c
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ class API extends Handler {
function catchupFeed(): bool {
$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"] ?? "");
if (!in_array($mode, ["all", "1day", "1week", "2week"]))