Skip to content

Commit 6045a9b

Browse files
ENGCOM-3483: fix php 7.2 error : Countable interface not implemented #19249
- Merge Pull Request #19249 from adexos/magento2:2.3-develop - Merged commits: 1. f1e7e3f 2. a7b9122
2 parents 4126ffc + a7b9122 commit 6045a9b

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
@@ -546,7 +546,7 @@ private function _setUploadFileId($fileId)
546546

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

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

0 commit comments

Comments
 (0)