diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/steps/mail/show.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc index afaa0da6f..ea148d5d6 100644 --- a/program/steps/mail/show.inc +++ b/program/steps/mail/show.inc @@ -270,14 +270,13 @@ function rcmail_remote_objects_msg() function rcmail_message_buttons() { - global $RCMAIL; + global $RCMAIL, $MESSAGE; - $mbox = $RCMAIL->storage->get_folder(); $delim = $RCMAIL->storage->get_hierarchy_delimiter(); $dbox = $RCMAIL->config->get('drafts_mbox'); // the message is not a draft - if ($mbox != $dbox && strpos($mbox, $dbox.$delim) !== 0) { + if ($MESSAGE->folder != $dbox && strpos($MESSAGE->folder, $dbox.$delim) !== 0) { return ''; } |