fix for save draft
authorjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 11 Feb 2002 20:21:26 +0000 (20:21 +0000)
committerjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 11 Feb 2002 20:21:26 +0000 (20:21 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2421 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/delete_message.php

index 3079368d90f3eee2919d0e5049c47b7635e5ff14..af16dd59fa2a61a9962a632e91afba2ea70280a1 100644 (file)
@@ -37,7 +37,7 @@ if (isset($where) && isset($what)) {
     header("Location: $location/search.php?where=" . urlencode($where) .
            '&what=' . urlencode($what) . '&mailbox=' . urlencode($mailbox));
 } else {
     header("Location: $location/search.php?where=" . urlencode($where) .
            '&what=' . urlencode($what) . '&mailbox=' . urlencode($mailbox));
 } else {
-    if ($compose_new_win == '1') {
+    if (!empty($saved_draft) || !empty($mail_sent)) {
           header("Location: $location/compose.php?mail_sent=$mail_sent&saved_draft=$saved_draft");
     }
     else {
           header("Location: $location/compose.php?mail_sent=$mail_sent&saved_draft=$saved_draft");
     }
     else {