From a4806132a122c31a52c95ee0805d5fa3de0abbf7 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Mon, 30 Jun 2014 22:56:00 +0200 Subject: [PATCH] Fixed again excaption image is not found --- core/lib/Thelia/Core/Template/Loop/Image.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Loop/Image.php b/core/lib/Thelia/Core/Template/Loop/Image.php index 627b3eb79..85ce14149 100644 --- a/core/lib/Thelia/Core/Template/Loop/Image.php +++ b/core/lib/Thelia/Core/Template/Loop/Image.php @@ -177,9 +177,11 @@ class Image extends BaseI18nLoop implements PropelSearchLoopInterface // Check for product="id" folder="id", etc. style arguments foreach ($this->possible_sources as $source) { - $argValue = intval($this->getArgValue($source)); + $argValue = $this->getArgValue($source); - if ($argValue >= 0) { + if (! empty($argValue)) { + + $argValue = intval($argValue); $search = $this->createSearchQuery($source, $argValue);