From: stekkel Date: Fri, 15 Apr 2005 08:44:06 +0000 (+0000) Subject: Looks like message highlighting contains a bug. The color is returned X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f3a1e5fae4a893373a6394fb4e07ba4fd0a3d9c9;p=squirrelmail.git 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 --- 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 {