eliminate notice and unneccessary html when td_str not set.
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 29 Mar 2005 13:10:02 +0000 (13:10 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 29 Mar 2005 13:10:02 +0000 (13:10 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9152 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/folders.php

index f34dc044639945a95e0ffdb98a2a0d910c200e98..e3cc6127e6d20933348decd26d075b39a558a918 100644 (file)
@@ -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', '<b>' . $td_str . "</b><br />\n" .
                                '<a href="../src/left_main.php" target="left">' .
@@ -109,6 +111,7 @@ if ( sqgetGlobalVar('smaction', $action, SQ_POST) ) {
                      'center' )
                 ) ,
             'center', '', 'width="100%" cellpadding="4" cellspacing="0" border="0"' );
+    }
 }
 
 echo "\n<br />";