count parameter is not needed anymore in BaseLoop::exec

This commit is contained in:
Manuel Raynaud
2014-01-24 14:09:54 +01:00
parent 2411f5ffa3
commit 5b9b03970e

View File

@@ -361,7 +361,7 @@ abstract class BaseLoop
* @param $pagination * @param $pagination
* @return LoopResult * @return LoopResult
*/ */
public function exec(&$pagination, $count = false) public function exec(&$pagination)
{ {
$hash = $this->args->getHash(); $hash = $this->args->getHash();
if(false === array_key_exists($hash, self::$cache)) 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); $loopResult = new LoopResult($results);
if (true === $this->countable) { if (true === $this->countable) {