Upload: do not fail on PHP 7.2

fixes #3689
This commit is contained in:
Thomas Gelf 2019-02-20 05:41:23 +01:00
parent 7868216d04
commit 07776c54f3
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class Zend_Validate_File_Upload extends Zend_Validate_Abstract
*/
public function isValid($value, $file = null)
{
$this->_messages = null;
$this->_messages = [];
if (array_key_exists($value, $this->_files)) {
$files[$value] = $this->_files[$value];
} else {