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

[GENERIC] Zend_Validate:

- fixed wrong messages

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20180 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 16 éve
szülő
commit
61f44d08fb
1 módosított fájl, 7 hozzáadás és 7 törlés
  1. 7 7
      library/Zend/Validate/NotEmpty.php

+ 7 - 7
library/Zend/Validate/NotEmpty.php

@@ -164,7 +164,7 @@ class Zend_Validate_NotEmpty extends Zend_Validate_Abstract
         if ($type >= self::SPACE) {
         if ($type >= self::SPACE) {
             $type -= self::SPACE;
             $type -= self::SPACE;
             if (is_string($value) && (preg_match('/^\s+$/s', $value))) {
             if (is_string($value) && (preg_match('/^\s+$/s', $value))) {
-                $this->_error(self::INVALID);
+                $this->_error(self::IS_EMPTY);
                 return false;
                 return false;
             }
             }
         }
         }
@@ -173,7 +173,7 @@ class Zend_Validate_NotEmpty extends Zend_Validate_Abstract
         if ($type >= self::NULL) {
         if ($type >= self::NULL) {
             $type -= self::NULL;
             $type -= self::NULL;
             if (is_null($value)) {
             if (is_null($value)) {
-                $this->_error(self::INVALID);
+                $this->_error(self::IS_EMPTY);
                 return false;
                 return false;
             }
             }
         }
         }
@@ -182,7 +182,7 @@ class Zend_Validate_NotEmpty extends Zend_Validate_Abstract
         if ($type >= self::EMPTY_ARRAY) {
         if ($type >= self::EMPTY_ARRAY) {
             $type -= self::EMPTY_ARRAY;
             $type -= self::EMPTY_ARRAY;
             if (is_array($value) && ($value == array())) {
             if (is_array($value) && ($value == array())) {
-                $this->_error(self::INVALID);
+                $this->_error(self::IS_EMPTY);
                 return false;
                 return false;
             }
             }
         }
         }
@@ -191,7 +191,7 @@ class Zend_Validate_NotEmpty extends Zend_Validate_Abstract
         if ($type >= self::ZERO) {
         if ($type >= self::ZERO) {
             $type -= self::ZERO;
             $type -= self::ZERO;
             if (is_string($value) && ($value == '0')) {
             if (is_string($value) && ($value == '0')) {
-                $this->_error(self::INVALID);
+                $this->_error(self::IS_EMPTY);
                 return false;
                 return false;
             }
             }
         }
         }
@@ -200,7 +200,7 @@ class Zend_Validate_NotEmpty extends Zend_Validate_Abstract
         if ($type >= self::STRING) {
         if ($type >= self::STRING) {
             $type -= self::STRING;
             $type -= self::STRING;
             if (is_string($value) && ($value == '')) {
             if (is_string($value) && ($value == '')) {
-                $this->_error(self::INVALID);
+                $this->_error(self::IS_EMPTY);
                 return false;
                 return false;
             }
             }
         }
         }
@@ -209,7 +209,7 @@ class Zend_Validate_NotEmpty extends Zend_Validate_Abstract
         if ($type >= self::FLOAT) {
         if ($type >= self::FLOAT) {
             $type -= self::FLOAT;
             $type -= self::FLOAT;
             if (is_float($value) && ($value == 0.0)) {
             if (is_float($value) && ($value == 0.0)) {
-                $this->_error(self::INVALID);
+                $this->_error(self::IS_EMPTY);
                 return false;
                 return false;
             }
             }
         }
         }
@@ -218,7 +218,7 @@ class Zend_Validate_NotEmpty extends Zend_Validate_Abstract
         if ($type >= self::INTEGER) {
         if ($type >= self::INTEGER) {
             $type -= self::INTEGER;
             $type -= self::INTEGER;
             if (is_int($value) && ($value == 0)) {
             if (is_int($value) && ($value == 0)) {
-                $this->_error(self::INVALID);
+                $this->_error(self::IS_EMPTY);
                 return false;
                 return false;
             }
             }
         }
         }