Development

Changeset 6763

You must first sign up to be able to contribute.

Changeset 6763

Show
Ignore:
Timestamp:
12/27/07 17:09:11 (1 year ago)
Author:
fabien
Message:

fixed logic error in sfPager class affects haveToPaginate() method (closes #1512)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/addon/sfPager.class.php

    r3099 r6763  
    9494  public function haveToPaginate() 
    9595  { 
    96     return (($this->getPage() != 0) && ($this->getNbResults() > $this->getMaxPerPage())); 
     96    return (($this->getMaxPerPage() != 0) && ($this->getNbResults() > $this->getMaxPerPage())); 
    9797  } 
    9898