diff --git a/core/lib/Thelia/Core/Template/Element/BaseLoop.php b/core/lib/Thelia/Core/Template/Element/BaseLoop.php index 32421430a..7b409a0c1 100644 --- a/core/lib/Thelia/Core/Template/Element/BaseLoop.php +++ b/core/lib/Thelia/Core/Template/Element/BaseLoop.php @@ -361,7 +361,7 @@ abstract class BaseLoop * @param $pagination * @return LoopResult */ - public function exec(&$pagination, $count = false) + public function exec(&$pagination) { $hash = $this->args->getHash(); if(false === array_key_exists($hash, self::$cache)) @@ -388,10 +388,6 @@ abstract class BaseLoop } } - if ($count) { - return $results ? count($results) : 0; - } - $loopResult = new LoopResult($results); if (true === $this->countable) {