We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b10dacb commit 4a5a67dCopy full SHA for 4a5a67d
lib/classes/param.php
@@ -801,7 +801,10 @@ protected function clean_param_value_sequence(mixed $param): mixed {
801
* @return mixed
802
*/
803
protected function clean_param_value_bool(mixed $param): mixed {
804
- // Convert to 1 or 0.
+ // Convert to 1 or 0 or bool.
805
+ if (is_bool($param)) {
806
+ return $param ? true : false;
807
+ }
808
$tempstr = strtolower((string)$param);
809
if ($tempstr === 'on' || $tempstr === 'yes' || $tempstr === 'true') {
810
$param = 1;
0 commit comments