--- class.tx_indexedsearch.php_old 2005-05-23 02:41:32.000000000 +0200 v 1.12 2005/05/12 22:54:17 +++ class.tx_indexedsearch.php_new 2005-09-20 02:54:00.134259200 +0200 @@ -1382,7 +1382,7 @@ */ function pi_list_browseresults($showResultCount=1,$addString='',$addPart='') { - // Initializing variables: + // Initializing variables: $pointer=$this->piVars['pointer']; $count=$this->internal['res_count']; $results_at_a_time = t3lib_div::intInRange($this->internal['results_at_a_time'],1,1000); @@ -1395,9 +1395,10 @@ if ($pointer>0) { $links[]='

'.$this->makePointerSelector_link($this->pi_getLL('pi_list_browseresults_prev','< Previous',1),$pointer-1).'

'; } - for($a=0;$a<$max;$a++) { - $links[]='pi_classParam('browsebox-SCell'):'').'>

'.$this->makePointerSelector_link(trim($this->pi_getLL('pi_list_browseresults_page','Page',1).' '.($a+1)),$a).'

'; - } + for($a=0;$a<$max;$a++) { + if ($pointer+$a <= ceil($count/$results_at_a_time)-1) { + $links[]='pi_classParam('browsebox-SCell'):'').'>'.$this->makePointerSelector_link(trim($this->pi_getLL('pi_list_browseresults_page','Page',1).' '.($pointer+$a+1)),$pointer+$a).''; } + } if ($pointermakePointerSelector_link($this->pi_getLL('pi_list_browseresults_next','Next >',1),$pointer+1).'

'; }