Explorar o código

[ZF-9159] Zend_File:

- fixed setoption when no file has been provided

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21038 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas %!s(int64=16) %!d(string=hai) anos
pai
achega
571c6be98c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      library/Zend/File/Transfer/Adapter/Abstract.php

+ 1 - 1
library/Zend/File/Transfer/Adapter/Abstract.php

@@ -553,7 +553,7 @@ abstract class Zend_File_Transfer_Adapter_Abstract
         $file = $this->_getFiles($files, false, true);
 
         if (is_array($options)) {
-            if ($file === null) {
+            if (empty($file)) {
                 $this->_options = array_merge($this->_options, $options);
             }