Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.10.1
-
Fix Version/s: 1.10.2
-
Component/s: Zend_File_Transfer
-
Labels:None
Description
Zend_File_Transfer::setOptions() contains the following check:
$file = $this->_getFiles($files, false, true); // Always returns an array() even if it is empty.
if (is_array($options)) {
if ($file === null) { // Because $file will always be an array, this can never execute.
$this->_options = array_merge($this->_options, $options);
}
// Code Continues....
Basically the check should be:
if(empty($file)) {
}
Fixed with r21039