Skip to content

Commit 811ed3a

Browse files
authored
ENGCOM-3483: fix php 7.2 error : Countable interface not implemented #19249
2 parents ef1127e + 6045a9b commit 811ed3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/File/Uploader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ private function _setUploadFileId($fileId)
548548

549549
preg_match("/^(.*?)\[(.*?)\]$/", $fileId, $file);
550550

551-
if (is_array($file) && count($file) > 0 && count($file[0]) > 0 && count($file[1]) > 0) {
551+
if (is_array($file) && count($file) > 0 && !empty($file[0]) && !empty($file[1])) {
552552
array_shift($file);
553553
$this->_uploadType = self::MULTIPLE_STYLE;
554554

0 commit comments

Comments
 (0)