Skip to content

Commit c7a770f

Browse files
committed
MC-15440: Product Page Gallery Load Optimization
1 parent 0c90472 commit c7a770f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Helper/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ protected function getImageFile()
765765
protected function parseSize($string)
766766
{
767767
$size = explode('x', strtolower($string));
768-
if (sizeof($size) == 2) {
768+
if (count($size) == 2) {
769769
return ['width' => $size[0] > 0 ? $size[0] : null, 'height' => $size[1] > 0 ? $size[1] : null];
770770
}
771771
return false;

0 commit comments

Comments
 (0)