Removed warnings that were appearing
[squirrelmail.git] / functions / mailbox_display.php
index 82cfae50bad3b2b1307fe7389ca4cd38e27c4696..5a36afb3cf4592f00629ca7b14c86a711f33c833 100644 (file)
       for ($i = 0; $i < count($boxes); $i++) {
          if (!in_array("noselect", $boxes[$i]['flags'])) {
             $box = $boxes[$i]['unformatted'];
-            $box2 = str_replace(' ', '&nbsp;', $boxes[$i]['formatted']);
+            $box2 = str_replace(' ', '&nbsp;', $boxes[$i]['unformatted-disp']);
             echo "         <OPTION VALUE=\"$box\">$box2</option>\n";
          }
       }
      */
     function get_paginator_str
     ($urlMailbox, $start_msg, $end_msg, $num_msgs, $show_num, $sort) {
-        global $username, $data_dir, $use_mailbox_cache;
+        global $username, $data_dir, $use_mailbox_cache, $color;
 
         $nextGroup = $start_msg + $show_num;
         $prevGroup = $start_msg - $show_num;
             if ($num_msgs % $show_num <> 0 ) {
                 $j++;
             }
-            $start_msgs = min( $start_msgs, $num_msgs );
+            $start_msg = min( $start_msg, $num_msgs );
             $p = intval( $start_msg / $show_num ) + 1;
             $i = 1;
             while( $i < $p ) {