diff options
author | Aleksander Machniak <alec@alec.pl> | 2022-09-29 21:29:08 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2022-09-29 21:29:08 +0300 |
commit | e9ce8dc63d403f5c720615e5ac33554727fc8886 (patch) | |
tree | c555891799b01f3b6845fa2bf39a2a10bbe7c69c | |
parent | 0077d7a52dc18719bc9fca4a2d6c8150f56abfcd (diff) |
Fix undefined array key warning
-rw-r--r-- | program/actions/mail/compose.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/actions/mail/compose.php b/program/actions/mail/compose.php index f6f9f0a87..1ca73f75c 100644 --- a/program/actions/mail/compose.php +++ b/program/actions/mail/compose.php @@ -269,12 +269,12 @@ class rcmail_action_mail_compose extends rcmail_action_mail_index $options['dsn_enabled'] = true; } - self::$COMPOSE['mailbox'] = $info['folder']; + self::$COMPOSE['mailbox'] = $info['folder'] ?? null; // Save the sent message in the same folder of the message being replied to if ( $rcmail->config->get('reply_same_folder') - && ($sent_folder = $info['folder']) + && ($sent_folder = self::$COMPOSE['mailbox']) && rcmail_sendmail::check_sent_folder($sent_folder, false) ) { self::$COMPOSE['param']['sent_mbox'] = $sent_folder; |