Piotr Labudda 7 лет назад
Родитель
Сommit
d27026e769
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      SE/se-lib/V.php

+ 5 - 0
SE/se-lib/V.php

@@ -328,6 +328,11 @@ class V {
 		return !empty($value);
 	}
 
+	public static function filterNotEmptyString($value) {
+		if ('0' === $value) return true;
+		return !empty($value);
+	}
+
 	public static function filterInteger($value) {// An integer or string with integer value
 		if (is_int($value)) {
 			return true;