We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dd1c41 commit f4855d4Copy full SHA for f4855d4
app/code/core/Mage/Catalog/Helper/Image.php
@@ -564,13 +564,18 @@ protected function getImageFile()
564
*/
565
protected function parseSize($string)
566
{
567
+ if ($string === null) {
568
+ return false;
569
+ }
570
+
571
$size = explode('x', strtolower($string));
572
if (count($size) === 2) {
573
return [
574
'width' => ($size[0] > 0) ? $size[0] : null,
575
'heigth' => ($size[1] > 0) ? $size[1] : null,
576
];
577
}
578
579
return false;
580
581
0 commit comments