Skip to content

Commit f4855d4

Browse files
authored
Fixed deprecation warning on Mage_Catalog_Helper_Image (#3201)
1 parent 7dd1c41 commit f4855d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/core/Mage/Catalog/Helper/Image.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,13 +564,18 @@ protected function getImageFile()
564564
*/
565565
protected function parseSize($string)
566566
{
567+
if ($string === null) {
568+
return false;
569+
}
570+
567571
$size = explode('x', strtolower($string));
568572
if (count($size) === 2) {
569573
return [
570574
'width' => ($size[0] > 0) ? $size[0] : null,
571575
'heigth' => ($size[1] > 0) ? $size[1] : null,
572576
];
573577
}
578+
574579
return false;
575580
}
576581

0 commit comments

Comments
 (0)