Fix for Forward messages from a search
[squirrelmail.git] / src / search.php
index 3d49744ef5b0d40026b1d681966a446e6da072d5..8ace7760cb04d2182659311e9745bfa33d35e1db 100644 (file)
@@ -180,8 +180,11 @@ if ($mailbox == 'All Folders') {
     $search_all = 'all';
 }
 
-displayPageHeader($color, $mailbox);
-
+if (isset($composenew) && $composenew) {
+    displayPageHeader($color, $mailbox, 'comp_in_new();');
+} else {
+    displayPageHeader($color, $mailbox);
+}
 /*  See how the page was called and fire off correct function  */
 if ((!isset($submit) || empty($submit)) && !empty($what)) {
     $submit = _("Search");