filter with null param

This commit is contained in:
Fred Tempez 2022-10-04 09:19:13 +02:00
parent dacc074455
commit 90b860eb83
2 changed files with 1 additions and 2 deletions

View File

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

View File

@ -767,7 +767,7 @@ class common {
}
}
// Sinon retourne null
return helper::filter(null, $filter);
return null;
}
/**