Forráskód Böngészése

+ V::filterNotEmptyString

Piotr Labudda 7 éve
szülő
commit
d27026e769
1 módosított fájl, 5 hozzáadás és 0 törlés
  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;