filter with null param
This commit is contained in:
parent
dacc074455
commit
90b860eb83
@ -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;
|
||||
|
@ -767,7 +767,7 @@ class common {
|
||||
}
|
||||
}
|
||||
// Sinon retourne null
|
||||
return helper::filter(null, $filter);
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user