From 90b860eb8323eb3ff036dfa429c8be5e60bd6a88 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 4 Oct 2022 09:19:13 +0200 Subject: [PATCH] filter with null param --- core/class/helper.class.php | 1 - core/core.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/class/helper.class.php b/core/class/helper.class.php index e4c9aa59..cb72b5be 100644 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -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; diff --git a/core/core.php b/core/core.php index 5bbd3828..a69f34aa 100644 --- a/core/core.php +++ b/core/core.php @@ -767,7 +767,7 @@ class common { } } // Sinon retourne null - return helper::filter(null, $filter); + return null; } /**