Fixed again excaption image is not found

This commit is contained in:
Franck Allimant
2014-06-30 22:56:00 +02:00
parent 565de5d443
commit a4806132a1

View File

@@ -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);