From 63d8ea52dd6ce8307351027037d373626777bc28 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Mon, 30 Jun 2014 22:04:09 +0200 Subject: [PATCH] No more Exception if ID cannot be found (e.g. content=0) --- core/lib/Thelia/Core/Template/Loop/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Thelia/Core/Template/Loop/Image.php b/core/lib/Thelia/Core/Template/Loop/Image.php index b77609201..627b3eb79 100644 --- a/core/lib/Thelia/Core/Template/Loop/Image.php +++ b/core/lib/Thelia/Core/Template/Loop/Image.php @@ -179,7 +179,7 @@ class Image extends BaseI18nLoop implements PropelSearchLoopInterface $argValue = intval($this->getArgValue($source)); - if ($argValue > 0) { + if ($argValue >= 0) { $search = $this->createSearchQuery($source, $argValue);