html output started before displayHtmlHeader is called (#1454409).
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 21 Mar 2006 19:21:52 +0000 (19:21 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 21 Mar 2006 19:21:52 +0000 (19:21 +0000)
Patch by santyaga_ru at users.sourceforge.net

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11000 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index bae2c47743591191e7d62d06c248807627680efa..aa578d89fb0f51e457f36f1fb22159fd95298652 100644 (file)
@@ -578,14 +578,14 @@ if ($send) {
      */
     include_once('./addrbook_search_html.php');
 } elseif (isset($attach)) {
-    if (saveAttachedFiles($session)) {
-        plain_error_message(_("Could not move/copy file. File not attached"), $color);
-    }
     if ($compose_new_win == '1') {
         compose_Header($color, $mailbox);
     } else {
         displayPageHeader($color, $mailbox);
     }
+    if (saveAttachedFiles($session)) {
+        plain_error_message(_("Could not move/copy file. File not attached"), $color);
+    }
     showInputForm($session);
 }
 elseif (isset($sigappend)) {