From 9297ac32f29aa05a2add5e26540fbac2b74cb708 Mon Sep 17 00:00:00 2001 From: Sebastian Zoglowek <55794780+zoglo@users.noreply.github.com> Date: Fri, 14 Jun 2024 08:42:51 +0200 Subject: [PATCH] Fixed an error with non-handled insert tags params (#24) --- src/EventListener/InsertTagsListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventListener/InsertTagsListener.php b/src/EventListener/InsertTagsListener.php index f8a29fb..076a177 100644 --- a/src/EventListener/InsertTagsListener.php +++ b/src/EventListener/InsertTagsListener.php @@ -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];