From: indiri69 Date: Tue, 24 Feb 2004 22:07:27 +0000 (+0000) Subject: Verify that concat_hook_function actually returned something before writing over... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7753dac488fddaaa9029df53194281ae3bd012ef;p=squirrelmail.git 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 --- 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) {