Browse Source

notBlank rule should not false positive on numeric input

Mark Sch 10 years ago
parent
commit
dc22e5cc9f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Validation/Validation.php

+ 1 - 1
src/Validation/Validation.php

@@ -83,7 +83,7 @@ class Validation
      */
     public static function notBlank($check)
     {
-        if (empty($check) && $check !== '0') {
+        if (empty($check) && $check !== '0' && $check !== 0) {
             return false;
         }
         return static::_check($check, '/[^\s]+/m');