소스 검색

[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 년 전
부모
커밋
e71c9a0f65
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      library/Zend/Validate/Barcode/AdapterAbstract.php

+ 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);
             }
         }