diff options
| author | wn_ <invalid@email.com> | 2021-11-18 18:23:44 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2021-11-18 18:25:04 +0000 |
| commit | d532eb773bc460fe01a10e980fecbb1fdc53497c (patch) | |
| tree | 9c333800ba1b77174dc49998728b0beb359360aa /classes/rpc.php | |
| parent | cd712926105f18e906132ded25a86dec676ed9cc (diff) | |
Switch from null to false as the default for missing bool params.
Diffstat (limited to 'classes/rpc.php')
| -rwxr-xr-x | classes/rpc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/rpc.php b/classes/rpc.php index 584b86b23..4f6a2fe1d 100755 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -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']); |