This removes that Current Folder: None when it is not applicable.
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 24 Jan 2002 08:51:40 +0000 (08:51 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 24 Jan 2002 08:51:40 +0000 (08:51 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2222 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/page_header.php

index c84f839..a38f076 100644 (file)
@@ -103,9 +103,13 @@ function checkForm() {
     echo "<A NAME=pagetop></A>\n"
         . "<TABLE BGCOLOR=\"$color[4]\" BORDER=0 WIDTH=\"100%\" CELLSPACING=0 CELLPADDING=2>\n"
         . "   <TR BGCOLOR=\"$color[9]\" >\n"
-        . "      <TD ALIGN=left>\n"
-        . '         ' . _("Current Folder") . ": <B>$shortBoxName&nbsp;</B>\n"
-        . "      </TD>\n"
+        . "      <TD ALIGN=left>\n";
+    if ( $shortBoxName <> '' && strtolower( $shortBoxName ) <> 'none' ) {
+        echo '         ' . _("Current Folder") . ": <B>$shortBoxName&nbsp;</B>\n";
+    } else {
+        echo '&nbsp;';
+    }
+    echo  "      </TD>\n"
         . "      <TD ALIGN=right><b>\n";
     displayInternalLink ('src/signout.php', _("Sign Out"), '_top');
     echo "      </b></TD>\n"