From e0c5664a5a25640de64801874df7ef6517d36a8d Mon Sep 17 00:00:00 2001 From: kink Date: Tue, 29 Mar 2005 13:10:02 +0000 Subject: [PATCH] eliminate notice and unneccessary html when td_str not set. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9152 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/folders.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/folders.php b/src/folders.php index f34dc044..e3cc6127 100644 --- a/src/folders.php +++ b/src/folders.php @@ -101,7 +101,9 @@ if ( sqgetGlobalVar('smaction', $action, SQ_POST) ) { break; } - echo html_tag( 'table', + // if there are any messages, output them. + if ( !empty($td_str) ) { + echo html_tag( 'table', html_tag( 'tr', html_tag( 'td', '' . $td_str . "
\n" . '' . @@ -109,6 +111,7 @@ if ( sqgetGlobalVar('smaction', $action, SQ_POST) ) { 'center' ) ) , 'center', '', 'width="100%" cellpadding="4" cellspacing="0" border="0"' ); + } } echo "\n
"; -- 2.25.1