Browse Source

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.

stekkel 20 years ago
parent
commit
3cf396d875
1 changed files with 4 additions and 0 deletions
  1. 4 0
      functions/mailbox_display.php

+ 4 - 0
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 {