Skip to content

Commit

Permalink
Fixed an error with non-handled insert tags params (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo committed Jun 14, 2024
1 parent 7c05d3f commit 9297ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/InsertTagsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private function convertImgSize($strSize): ?string
return null;
}

list($intWidth, $intHeight, $mode) = explode('x', $strSize);
list($intWidth, $intHeight, $mode) = array_pad(explode('x', $strSize),3, null);

$arrSizes = [$intWidth, $intHeight];

Expand Down

0 comments on commit 9297ac3

Please sign in to comment.