Prechádzať zdrojové kódy

[ZF-8836] Zend_Validate:

- revert conversion to array

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20508 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 16 rokov pred
rodič
commit
e71c9a0f65

+ 1 - 5
library/Zend/Validate/Barcode/AdapterAbstract.php

@@ -136,14 +136,10 @@ abstract class Zend_Validate_Barcode_AdapterAbstract
      */
     public function checksum($value)
     {
-        if (!is_array($value)) {
-            $value = array($value);
-        }
-        
         $checksum = $this->getChecksum();
         if (!empty($checksum)) {
             if (method_exists($this, $checksum)) {
-                return call_user_func_array(array($this, $checksum), $value);
+                return call_user_func(array($this, $checksum), $value);
             }
         }