Skip to content

Commit 065da57

Browse files
committed
fixed invalid assignment $this->_messages = null causing "Warning: count(): Parameter must be an array or an object that implements Countable"
1 parent fceb626 commit 065da57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Zend/Validate/File/Upload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function setFiles($files = array())
161161
*/
162162
public function isValid($value, $file = null)
163163
{
164-
$this->_messages = null;
164+
$this->_messages = array();
165165
if (array_key_exists($value, $this->_files)) {
166166
$files[$value] = $this->_files[$value];
167167
} else {

0 commit comments

Comments
 (0)