Skip to content

Commit

Permalink
Fixing a PHP 7.2 warning in Zend_Validate_File_Upload (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydiablo authored and aripringle committed Feb 9, 2018
1 parent f069fbd commit 5619c52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/Zend/Validate/File/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ public function setFiles($files = array())
*/
public function isValid($value, $file = null)
{
$this->_messages = null;
$this->_messages = array();
$files = array();

if (array_key_exists($value, $this->_files)) {
$files[$value] = $this->_files[$value];
} else {
Expand Down

0 comments on commit 5619c52

Please sign in to comment.