Commit 18fc6b4a authored by zYne's avatar zYne

fixed initialize

parent 84a97f98
...@@ -89,8 +89,8 @@ class Doctrine_Pager ...@@ -89,8 +89,8 @@ class Doctrine_Pager
*/ */
protected function initialize() protected function initialize()
{ {
// etrieve the number of itens found // retrieve the number of items found
$count = $this->getQuery()->offset(0)->limit(0)->count(); $count = $this->getQuery()->count();
$this->setNbResults($count); $this->setNbResults($count);
$this->adjustOffset(); $this->adjustOffset();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment