filter null param
This commit is contained in:
parent
672e4dc453
commit
34ddb487cd
@ -333,7 +333,7 @@ class helper {
|
||||
* @return string
|
||||
*/
|
||||
public static function filter($text, $filter) {
|
||||
$text = trim($text);
|
||||
$text = is_null($text) ? $text : trim($text);
|
||||
switch($filter) {
|
||||
case self::FILTER_BOOLEAN:
|
||||
$text = (bool) $text;
|
||||
|
Loading…
Reference in New Issue
Block a user