mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 17:05:55 +00:00
Consistently handle param string to bool conversions in handlers.
This commit is contained in:
@@ -27,4 +27,10 @@ class Handler implements IHandler {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $p
|
||||
*/
|
||||
protected static function _param_to_bool($p): bool {
|
||||
return $p && ($p !== "f" && $p !== "false");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user