diff --git a/classes/handler.php b/classes/handler.php index 15f9a1bd8..806c9cfbe 100644 --- a/classes/handler.php +++ b/classes/handler.php @@ -31,9 +31,7 @@ class Handler implements IHandler { * @param mixed $p */ protected static function _param_to_bool($p): bool { - if (is_string($p)) { - $p = clean($p); - } + $p = clean($p); return $p && ($p !== "f" && $p !== "false"); } }