1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 00:35:56 +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

@@ -173,7 +173,7 @@ class RPC extends Handler_Protected {
}
function sanityCheck(): void {
$_SESSION["hasSandbox"] = self::_param_to_bool($_REQUEST["hasSandbox"] ?? null);
$_SESSION["hasSandbox"] = self::_param_to_bool($_REQUEST["hasSandbox"] ?? false);
$_SESSION["clientTzOffset"] = clean($_REQUEST["clientTzOffset"]);
$client_location = $_REQUEST["clientLocation"];
@@ -225,7 +225,7 @@ class RPC extends Handler_Protected {
function catchupFeed(): void {
$feed_id = clean($_REQUEST['feed_id']);
$is_cat = self::_param_to_bool($_REQUEST['is_cat'] ?? null);
$is_cat = self::_param_to_bool($_REQUEST['is_cat'] ?? false);
$mode = clean($_REQUEST['mode'] ?? '');
$search_query = clean($_REQUEST['search_query']);
$search_lang = clean($_REQUEST['search_lang']);