Make compact paginator work on search results
[squirrelmail.git] / functions / template / paginator_util.php
index 2bec25fed0376752085fad75a9a0f12fe3bf8b94..c43b845b9483c98d3545479c8749588ec253e54b 100644 (file)
@@ -129,7 +129,7 @@ function get_compact_paginator_str($box, $iOffset, $iTotal, $iLimit, $bShowAll,
         if ($page_selector) {
             $options = array();
             for ($p = 0; $p < $tot_pgs; $p++) {
-                $options[(($p*$iLimit)+1)] = ($p+1) . "/$tot_pgs";
+                $options[(($p*$iLimit)+1) . '_' . $box] = ($p+1) . "/$tot_pgs";
             }
             $result .= $spc . addSelect('startMessage_' . $display_iterations, 
                                         $options,