From f3a1e5fae4a893373a6394fb4e07ba4fd0a3d9c9 Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 15 Apr 2005 08:44:06 +0000 Subject: [PATCH] Looks like message highlighting contains a bug. The color is returned without the leading # character. This will fix it. TODO, somebody may want to check why the color is stored without the leading # char. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9296 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 47e70ba8..d892cdca 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -627,6 +627,10 @@ function highlightMessage($sCol, $sVal, $highlight_list, &$aFormat) { } } if ($hlt_color) { + // Bug in highlight color??? + if ($hlt_color{0} != '#') { + $hlt_color = '#'. $hlt_color; + } $aFormat['row']['color'] = $hlt_color; return true; } else { -- 2.25.1