1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 08:55:55 +00:00

Switch from null to false as the default for missing bool params.

This commit is contained in:
wn_
2021-11-18 18:23:44 +00:00
parent cd71292610
commit d532eb773b
5 changed files with 24 additions and 24 deletions

View File

@@ -307,7 +307,7 @@ class Handler_Public extends Handler {
function rss(): void {
$feed = clean($_REQUEST["id"]);
$key = clean($_REQUEST["key"]);
$is_cat = self::_param_to_bool($_REQUEST["is_cat"] ?? null);
$is_cat = self::_param_to_bool($_REQUEST["is_cat"] ?? false);
$limit = (int)clean($_REQUEST["limit"] ?? 0);
$offset = (int)clean($_REQUEST["offset"] ?? 0);