Actually, always clean in Handler._param_to_bool()
This commit is contained in:
parent
16a7208893
commit
cd71292610
|
@ -31,9 +31,7 @@ class Handler implements IHandler {
|
||||||
* @param mixed $p
|
* @param mixed $p
|
||||||
*/
|
*/
|
||||||
protected static function _param_to_bool($p): bool {
|
protected static function _param_to_bool($p): bool {
|
||||||
if (is_string($p)) {
|
$p = clean($p);
|
||||||
$p = clean($p);
|
|
||||||
}
|
|
||||||
return $p && ($p !== "f" && $p !== "false");
|
return $p && ($p !== "f" && $p !== "false");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue