浏览代码

eliminate notice and unneccessary html when td_str not set.

Thijs Kinkhorst 20 年之前
父节点
当前提交
a49f9e4788
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/folders.php

+ 4 - 1
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', '<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 />";