From 34ddb487cd5194086eea571b93dec58bd8e4f4ae Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 5 Oct 2022 10:35:36 +0200 Subject: [PATCH] filter null param --- core/class/helper.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/class/helper.class.php b/core/class/helper.class.php index e4c9aa59..70a646c9 100644 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -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;