- fixed file counting for direct usage git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21325 44c647ce-9c0f-0410-b52a-842ac1e357ba
@@ -249,7 +249,7 @@ class Zend_Validate_File_Count extends Zend_Validate_Abstract
$value = $file['destination'] . DIRECTORY_SEPARATOR . $file['name'];
}
- if (!empty($file['tmp_name'])) {
+ if (($file === null) || !empty($file['tmp_name'])) {
$this->addFile($value);