Skip to content

Commit

Permalink
https://github.com/tradefurniturecompany/core/issues/47
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Dec 7, 2022
1 parent 0628de4 commit bd2b32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin/Catalog/Block/Product/View/GalleryOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function afterGetOptionsJson(Sb $sb, string $r):string {
$gc = $g->getGalleryImages(); /** @var C $gc */
if ($gc->count()) {
/** @var _DO $i */
if (!($i = df_find($gc, function(_DO $i) use($g) {return $g->isMainImage($i);}))) {
if (!($i = df_find($gc, function(_DO $i) use($g):bool {return $g->isMainImage($i);}))) {
$i = $gc->getFirstItem();
}
try {
Expand Down

0 comments on commit bd2b32c

Please sign in to comment.