From: Seth E. R. <ind...@us...> - 2002-10-09 17:00:00
|
Update of /cvsroot/squirrelmail/squirrelmail/functions In directory usw-pr-cvs1:/tmp/cvs-serv12501 Modified Files: mailbox_display.php Log Message: More code cleanups Index: mailbox_display.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/functions/mailbox_display.php,v retrieving revision 1.286 retrieving revision 1.287 diff -u -w -r1.286 -r1.287 --- mailbox_display.php 8 Oct 2002 22:19:00 -0000 1.286 +++ mailbox_display.php 9 Oct 2002 16:59:56 -0000 1.287 @@ -121,17 +121,16 @@ if (sizeof($message_highlight_list)){ foreach ($message_highlight_list as $message_highlight_list_part) { if (trim($message_highlight_list_part['value']) != '') { - if ($message_highlight_list_part['match_type'] == 'to_cc') { - if (strstr('^^' . strtolower($msg['TO']), - strtolower($message_highlight_list_part['value'])) - || strstr('^^'.strtolower($msg['CC']), - strtolower($message_highlight_list_part['value']))) { + $high_val = strtolower($message_highlight_list_part['value']); + $match_type = strtoupper($message_highlight_list_part['match_type']); + if ($match_type == 'TO_CC') { + if (strstr('^^' . strtolower($msg['TO']), $high_val) || + strstr('^^' . strtolower($msg['CC']), $high_val)) { $hlt_color = $message_highlight_list_part['color']; continue; } } else { - if (strstr('^^' . strtolower($msg[strtoupper($message_highlight_list_part['match_type'])]), - strtolower($message_highlight_list_part['value']))) { + if (strstr('^^' . strtolower($msg[$match_type]), $high_val)) { $hlt_color = $message_highlight_list_part['color']; continue; } |