From 7753dac488fddaaa9029df53194281ae3bd012ef Mon Sep 17 00:00:00 2001 From: indiri69 Date: Tue, 24 Feb 2004 22:07:27 +0000 Subject: [PATCH] Verify that concat_hook_function actually returned something before writing over string. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6658 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/display_messages.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions/display_messages.php b/functions/display_messages.php index 13bed869..8b062421 100644 --- a/functions/display_messages.php +++ b/functions/display_messages.php @@ -126,7 +126,10 @@ function error_box($string, $color) { $err = _("ERROR"); - $string = concat_hook_function('error_box', $string); + $ret = concat_hook_function('error_box', $string); + if($ret != '') { + $string = $ret; + } /* check if the page header has been sent; if not, send it! */ if(!isset($pageheader_sent) && !$pageheader_sent) { -- 2.25.1