From 4c25967cf60837ef60fcc73321d10a08db5488f0 Mon Sep 17 00:00:00 2001 From: kink Date: Thu, 27 Feb 2003 11:13:36 +0000 Subject: [PATCH] Swap colors, because new %2 test by Jon is true when the number is NOT dividable by 2 (3%2=1) so to keep the old color for one '>' we need to swap the colors. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4561 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index 64e38ba7..48866d6d 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -292,15 +292,15 @@ function translateText(&$body, $wrap_at, $charset) { } if ($quotes % 2) { - if (!isset($color[14])) { - $color[14] = '#FF0000'; - } - $line = '' . $line . ''; - } elseif ($quotes) { if (!isset($color[13])) { $color[13] = '#800000'; } - $line = '' . $line . ''; + $line = '' . $line . ''; + } elseif ($quotes) { + if (!isset($color[14])) { + $color[14] = '#FF0000'; + } + $line = '' . $line . ''; } $body_ary[$i] = $line; -- 2.25.1