From a429618b5b82bad57a4d2ff65848ff96c1d8dc03 Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 14 May 2004 21:14:31 +0000 Subject: [PATCH] initialize color array in case it isn't set at this stage. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7461 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/display_messages.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/functions/display_messages.php b/functions/display_messages.php index af92c0e9..90fbca7c 100644 --- a/functions/display_messages.php +++ b/functions/display_messages.php @@ -127,6 +127,16 @@ function logout_error( $errString, $errTitle = '' ) { function error_box($string, $color) { global $pageheader_sent; + if ( !isset( $color ) ) { + $color = array(); + $color[0] = '#DCDCDC'; /* light gray TitleBar */ + $color[1] = '#800000'; /* red */ + $color[2] = '#CC0000'; /* light red Warning/Error Messages */ + $color[4] = '#FFFFFF'; /* white Normal Background */ + $color[7] = '#0000CC'; /* blue Links */ + $color[8] = '#000000'; /* black Normal text */ + } + $err = _("ERROR"); $ret = concat_hook_function('error_box', $string); -- 2.25.1