Skip to content

Commit 6a78f95

Browse files
committed
fix option 'choose_bigger_image'
1 parent a31cd1e commit 6a78f95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Adapters/Adapter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,9 @@ public function getImage()
427427
return;
428428
}
429429

430+
reset($images);
431+
$image = current($images);
432+
430433
if ($bigger) {
431434
$sizes = [];
432435

@@ -442,9 +445,6 @@ public function getImage()
442445
break;
443446
}
444447
}
445-
} else {
446-
reset($images);
447-
$image = current($images);
448448
}
449449

450450
$this->imageWidth = $image['width'];

0 commit comments

Comments
 (0)