Changeset 7655 for trunk/workflow/inc/class.Paging.inc.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/class.Paging.inc.php
r795 r7655 124 124 $end = min($start + $this->itemsPerPage, $totalItems); 125 125 $this->items = array(); 126 for ($i = $start; $i < $end; $i++)126 for ($i = $start; $i < $end; ++$i) 127 127 $this->items[] = $pItems[$i]; 128 128 } … … 147 147 $charSeparator = empty($this->newRequest) ? "" : "&"; 148 148 149 for ($i = 0; $i < $this->numberOfPages; $i++)149 for ($i = 0; $i < $this->numberOfPages; ++$i) 150 150 { 151 151 $page = $i; … … 178 178 $firstPage = max(0, $this->currentPage - $numberOfLinks); 179 179 $lastPage = min($this->currentPage + $numberOfLinks, $this->numberOfPages); 180 for ($i = $firstPage; $i < $lastPage; $i++)180 for ($i = $firstPage; $i < $lastPage; ++$i) 181 181 $output[] = $allPaginationResults[$i]; 182 182 … … 225 225 } 226 226 227 for ($i = 0; $i < count($paginationLinks); $i++)227 for ($i = 0; $i < count($paginationLinks); ++$i) 228 228 { 229 229 $tmp = $paginationLinks[$i];
Note: See TracChangeset
for help on using the changeset viewer.