From 25dd672ca867d02aaa8c16684f5c60510beb814b Mon Sep 17 00:00:00 2001 From: jmunro Date: Wed, 17 Apr 2002 15:36:21 +0000 Subject: [PATCH] warning fix git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2746 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/options_highlight.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/options_highlight.php b/src/options_highlight.php index ceebe2f4..fdd0a279 100644 --- a/src/options_highlight.php +++ b/src/options_highlight.php @@ -298,7 +298,12 @@ if ($action == 'edit' || $action == 'add') { # Show grid of color choices echo "\n"; echo "\n"; - $current_color = $message_highlight_list[$theid]['color']; + if (isset($message_highlight_list[$theid]['color'])) { + $current_color = $message_highlight_list[$theid]['color']; + } + else { + $current_color = '63aa7f'; + } for($x = 0; $x < 5; $x++) { echo "\n"; for($y = 0; $y < 19; $y++) { -- 2.25.1