From a7ec9f30598ba87fff4c8b0f13f4b9d0a9f19c4b Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 5 Oct 2022 10:36:13 +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 0bc41a9e..ca32b975 100644 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -393,7 +393,7 @@ class helper */ 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;