Skip to content

Commit

Permalink
Merge pull request #2 from plesk/fix-validation-warning
Browse files Browse the repository at this point in the history
Fix file upload validation warning
  • Loading branch information
mavericknsk authored May 31, 2018
2 parents b11aa8c + 3ca926d commit f075839
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 f075839

Please sign in to comment.