Include subs too
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 5 Apr 2009 04:31:17 +0000 (04:31 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 5 Apr 2009 04:31:17 +0000 (04:31 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13518 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/read_body.php

index 10657bb..d83e6be 100644 (file)
@@ -628,7 +628,7 @@ function formatMenubar($aMailbox, $passed_id, $passed_ent_id, $message,
 
     // If Draft folder - create Resume link
     $resume_draft = $edit_as_new = false;
-    if (($mailbox == $draft_folder) && ($save_as_draft)) {
+    if (isDraftMailbox($mailbox) && ($save_as_draft)) {
         $resume_draft = true;
     } else if (handleAsSent($mailbox)) {
         $edit_as_new = true;