Changeset 3871
- Timestamp:
- 02/21/08 04:15:13 (17 months ago)
- Files:
-
- 3 modified
-
branches/0.10/lib/Doctrine/Pager.php (modified) (1 diff)
-
branches/0.9/lib/Doctrine/Pager.php (modified) (1 diff)
-
trunk/lib/Doctrine/Pager.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/lib/Doctrine/Pager.php
r3836 r3871 271 271 { 272 272 if ($this->getExecuted()) { 273 return $this->_lastPage;273 return min($this->getPage() + 1, $this->getLastPage()); 274 274 } 275 275 276 276 throw new Doctrine_Pager_Exception( 277 277 'Cannot retrieve the last page number of a not yet executed Pager query' 278 ); return min($this->getPage() + 1, $this->getLastPage());278 ); 279 279 } 280 280 -
branches/0.9/lib/Doctrine/Pager.php
r3836 r3871 271 271 { 272 272 if ($this->getExecuted()) { 273 return $this->_lastPage;273 return min($this->getPage() + 1, $this->getLastPage()); 274 274 } 275 275 276 276 throw new Doctrine_Pager_Exception( 277 277 'Cannot retrieve the last page number of a not yet executed Pager query' 278 ); return min($this->getPage() + 1, $this->getLastPage());278 ); 279 279 } 280 280 -
trunk/lib/Doctrine/Pager.php
r3836 r3871 271 271 { 272 272 if ($this->getExecuted()) { 273 return $this->_lastPage;273 return min($this->getPage() + 1, $this->getLastPage()); 274 274 } 275 275 276 276 throw new Doctrine_Pager_Exception( 277 277 'Cannot retrieve the last page number of a not yet executed Pager query' 278 ); return min($this->getPage() + 1, $this->getLastPage());278 ); 279 279 } 280 280