helper trim null

This commit is contained in:
Fred Tempez 2022-10-04 09:19:58 +02:00
parent 90b860eb83
commit db2c4620bf

View File

@ -333,6 +333,7 @@ class helper {
* @return string
*/
public static function filter($text, $filter) {
$text = trim($text);
switch($filter) {
case self::FILTER_BOOLEAN:
$text = (bool) $text;