From 77a31f092239c5bf2e680c7780c329b6d248020b Mon Sep 17 00:00:00 2001 From: Tobias Duehr Date: Wed, 29 Apr 2020 13:21:45 +0200 Subject: [PATCH] inherit image size from module settings in news lister --- src/Resources/contao/Hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/contao/Hooks.php b/src/Resources/contao/Hooks.php index d7d9ba4..0dceee9 100644 --- a/src/Resources/contao/Hooks.php +++ b/src/Resources/contao/Hooks.php @@ -21,7 +21,7 @@ public static function apiModuleGenerated(ApiModule $module, string $moduleClass ); if ($_module->imgSize) { foreach ($module->newsItems as $item) { - if (trim( + if (!trim( implode( '', StringUtil::deserialize($item->size)