Development

Changeset 6764

You must first sign up to be able to contribute.

Changeset 6764

Show
Ignore:
Timestamp:
12/27/07 17:09:17 (2 years 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.1/lib/addon/sfPager.class.php

    r5016 r6764  
    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 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.