Changeset 9182
- Timestamp:
- 05/22/08 11:40:05 (4 months ago)
- Files:
-
- branches/1.0/lib/addon/sfPager.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/lib/addon/sfPager.class.php
r9179 r9182 251 251 { 252 252 $this->page = intval($page); 253 if ( is_null($page) || $this->page <0)253 if ($this->page <= 0) 254 254 { 255 255 //set first page, which depends on a maximum set 256 $this->page = getMaxPerPage() ? 1 : 0;256 $this->page = $this->getMaxPerPage() ? 1 : 0; 257 257 } 258 258 }