From 5b528f7038fed1cd268627d2041fcff6c696ce0b Mon Sep 17 00:00:00 2001 From: fidian Date: Thu, 22 Mar 2001 21:56:51 +0000 Subject: [PATCH] * Fixed bug when editing message highlighting git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1202 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/options_highlight.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/options_highlight.php b/src/options_highlight.php index 2664b387..a5ac5abc 100644 --- a/src/options_highlight.php +++ b/src/options_highlight.php @@ -92,8 +92,11 @@ echo "
\n"; } if ($action == 'edit' || $action == 'add') { - if (!isset($theid)) $theid = count($message_highlight_list); - $message_highlight_list[$theid] = array(); + if (!isset($theid)) + { + $theid = count($message_highlight_list); + $message_highlight_list[$theid] = array(); + } $color_list[0] = '4444aa'; $color_list[1] = '44aa44'; @@ -111,6 +114,7 @@ $color_list[13] = 'ffffff'; $selected_input = ''; + $selected_choose = ''; for ($i=0; $i < 14; $i++) { ${"selected".$i} = ''; @@ -122,11 +126,11 @@ ${"selected".$i} = ' selected'; continue; } - } + } } if (!isset($message_highlight_list[$theid]['color'])) $selected_choose = ' checked'; - else if (!isset($selected_choose)) + else if ($selected_choose == '') $selected_input = ' checked'; echo '
' . "\n"; -- 2.25.1