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