From: stekkel Date: Fri, 16 Aug 2002 15:05:11 +0000 (+0000) Subject: init location field correctly X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=a3dd7047e2c00552c2b21af2bbbe8f183e0a7781;ds=sidebyside init location field correctly git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3331 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 2fc02b83..03504144 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -721,7 +721,12 @@ function mail_message_listing_beginning ($imapConnection, echo getButton('SUBMIT', 'markRead',_("Read")); echo getButton('SUBMIT', 'markUnread',_("Unread")); echo getButton('SUBMIT', 'delete',_("Delete")) ." \n"; - echo ''; + if (!strpos($PHP_SELF,'mailbox')) { + $location = $PHP_SELF.'?mailbox=INBOX&startMessage=1'; + } else { + $location = $PHP_SELF; + } + echo ''; echo "\n" . " \n";