filter with null param
This commit is contained in:
parent
dacc074455
commit
90b860eb83
@ -333,7 +333,6 @@ class helper {
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function filter($text, $filter) {
|
public static function filter($text, $filter) {
|
||||||
$text = trim($text);
|
|
||||||
switch($filter) {
|
switch($filter) {
|
||||||
case self::FILTER_BOOLEAN:
|
case self::FILTER_BOOLEAN:
|
||||||
$text = (bool) $text;
|
$text = (bool) $text;
|
||||||
|
@ -767,7 +767,7 @@ class common {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Sinon retourne null
|
// Sinon retourne null
|
||||||
return helper::filter(null, $filter);
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user