Skip to content

Commit

Permalink
Fix file upload validation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekaterina Spitsyna committed May 31, 2018
1 parent b11aa8c commit 3ca926d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Validate/File/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function setFiles($files = array())
*/
public function isValid($value, $file = null)
{
$this->_messages = null;
$this->_messages = array();
if (array_key_exists($value, $this->_files)) {
$files[$value] = $this->_files[$value];
} else {
Expand Down

0 comments on commit 3ca926d

Please sign in to comment.