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; } /**