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:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user