- Timestamp:
- 07/15/11 14:40:45 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/inc/class.ui_data.inc.php
r4767 r4768 1221 1221 { 1222 1222 //echo 'N_entries: '.$n_entries.'<br>'; 1223 $this->page_info['n_pages'] = ceil(($n_entries/($this->page_info['n_cards']) && !$dontPaginate ? $this->page_info['n_cards'] : 1));1223 $this->page_info['n_pages'] = $dontPaginate ? 1 : ceil($n_entries/$this->page_info['n_cards']); 1224 1224 } 1225 1225 else … … 1291 1291 $this->page_info['actual_letter'] = $letter; 1292 1292 $this->page_info['actual_entries'] = $ids; 1293 $this->page_info['n_pages'] = ceil((count($ids)/($this->page_info['n_cards']) && !$dontPaginate ? $this->page_info['n_cards'] : 1));1293 $this->page_info['n_pages'] = $dontPaginate ? 1 : ceil(count($this->page_info['actual_entries'])/$this->page_info['n_cards']); 1294 1294 } 1295 1295 }
Note: See TracChangeset
for help on using the changeset viewer.