Fix a old fix that was breaking the search when coming back from move_messages
[squirrelmail.git] / functions / mailbox_display.php
index aa15493bf412d7f4d48290510e4570cd0b9b7ce8..e3539e0be1c0e09d0bd4fe45607c21e43d15aff8 100644 (file)
@@ -767,7 +767,7 @@ function mail_message_listing_beginning ($imapConnection,
     echo getButton('SUBMIT', 'markRead',_("Read"));
     echo getButton('SUBMIT', 'markUnread',_("Unread"));
     echo getButton('SUBMIT', 'delete',_("Delete")) ." \n";
-    if (!strpos($php_self,'mailbox')) {
+    if (!strpos($php_self,'?')) {
         $location = $php_self.'?mailbox=INBOX&startMessage=1';
     } else {
         $location = $php_self;