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 ca47981 commit 951d5e8Copy full SHA for 951d5e8
app/code/Magento/Catalog/Model/ImageExtractor.php
@@ -35,7 +35,11 @@ public function process(\DOMElement $mediaNode, $mediaParentTag)
35
if ($attributeTagName === 'background') {
36
$nodeValue = $this->processImageBackground($attribute->nodeValue);
37
} elseif ($attributeTagName === 'width' || $attributeTagName === 'height') {
38
- $nodeValue = intval($attribute->nodeValue);
+ if ((bool)$attribute->getAttribute('xsi:nil') !== true) {
39
+ $nodeValue = intval($attribute->nodeValue);
40
+ } else {
41
+ $nodeValue = null;
42
+ }
43
} else {
44
$nodeValue = $attribute->nodeValue;
45
}
0 commit comments