Skip to content

Commit bc31694

Browse files
committed
Solve bug reported by scrutinizer
1 parent ed73fee commit bc31694

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Core/Format.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ public function getImages(): array
4747
$images = [];
4848

4949
foreach ($this->rawXml->preview->images->image as $imageXml) {
50-
$images[] = new Image($imageXml);
50+
if ($imageXml) {
51+
$images[] = new Image($imageXml);
52+
}
5153
}
5254

5355
return $images;

0 commit comments

Comments
 (0)