Development

Changeset 8888

You must first sign up to be able to contribute.

Changeset 8888

Show
Ignore:
Timestamp:
05/10/08 03:50:47 (1 week ago)
Author:
Jonathan.Wage
Message:

fixes http://trac.phpdoctrine.org/ticket/1021

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfDoctrinePlugin/branches/1.0/lib/sfDoctrinePager.class.php

    r5796 r8888  
    7575      $this->setLastPage(0); 
    7676    } else { 
     77      $offset = ($this->getPage() - 1) * $this->getMaxPerPage(); 
     78 
    7779      $this->setLastPage(ceil($this->getNbResults() / $this->getMaxPerPage())); 
    78  
    79       $offset = ($this->getPage() - 1) * $this->getMaxPerPage(); 
    8080 
    8181      $p->offset($offset);