From 89465360c61675e2fa88b719f9178f11d7476eef Mon Sep 17 00:00:00 2001 From: kink Date: Wed, 20 Nov 2002 15:41:07 +0000 Subject: [PATCH] E_ALL fixes, thanks Gertjan van Oosten git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4188 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/options_highlight.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/options_highlight.php b/src/options_highlight.php index 7b2ff635..6e12c60d 100644 --- a/src/options_highlight.php +++ b/src/options_highlight.php @@ -303,17 +303,17 @@ if ($action == 'edit' || $action == 'add') { for ($i=0; $i < 14; $i++) { ${"selected".$i} = ''; } - if ($action == 'edit' && isset($message_highlight_list[$theid]['color'])) { + if ($action == 'edit' && isset($theid) && isset($message_highlight_list[$theid]['color'])) { for ($i=0; $i < 14; $i++) { if ($color_list[$i] == $message_highlight_list[$theid]['color']) { - $selected_choose = ' checked'; - ${"selected".$i} = ' selected'; - continue; + $selected_choose = ' checked'; + ${"selected".$i} = ' selected'; + continue; } - } + } } - if ($action == 'edit' && isset($message_highlight_list[$theid]['color'])) { + if ($action == 'edit' && isset($theid) && isset($message_highlight_list[$theid]['color'])) { $current_color = $message_highlight_list[$theid]['color']; } else { @@ -341,14 +341,14 @@ if ($action == 'edit' || $action == 'add') { echo '
' . "\n"; echo '' . "\n"; if($action == 'edit') - echo '' . "\n"; + echo '' . "\n"; echo html_tag( 'table', '', 'center', '', 'width="80%" cellpadding="3" cellspacing="0" border="0"' ) . "\n"; echo html_tag( 'tr', '', '', $color[0] ) . "\n"; echo html_tag( 'td', '', 'right', '', 'nowrap' ) . "\n"; echo _("Identifying name") . ":"; echo ' ' . "\n"; echo html_tag( 'td', '', 'left' ) . "\n"; - if ($action == 'edit' && isset($message_highlight_list[$theid]['name'])) + if ($action == 'edit' && isset($theid) && isset($message_highlight_list[$theid]['name'])) $disp = $message_highlight_list[$theid]['name']; else $disp = ''; @@ -377,7 +377,7 @@ if ($action == 'edit' || $action == 'add') { echo "