Pārlūkot izejas kodu

[GENERIC] Zend_Validate_Int:

- internal fix

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17115 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 16 gadi atpakaļ
vecāks
revīzija
d9edfd962e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      library/Zend/Validate/Int.php

+ 1 - 1
library/Zend/Validate/Int.php

@@ -100,7 +100,7 @@ class Zend_Validate_Int extends Zend_Validate_Abstract
         $this->_setValue($value);
         $this->_setValue($value);
         if ($this->_locale === null) {
         if ($this->_locale === null) {
             $locale        = localeconv();
             $locale        = localeconv();
-            $valueFiltered = str_replace($locale['decimal_point'], '.', $valueString);
+            $valueFiltered = str_replace($locale['decimal_point'], '.', $value);
             $valueFiltered = str_replace($locale['thousands_sep'], '', $valueFiltered);
             $valueFiltered = str_replace($locale['thousands_sep'], '', $valueFiltered);
 
 
             if (strval(intval($valueFiltered)) != $valueFiltered) {
             if (strval(intval($valueFiltered)) != $valueFiltered) {