Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2022-08-09 20:10:33 +0300
committerAleksander Machniak <alec@alec.pl>2022-08-09 20:10:33 +0300
commit864e0710a355f3850e61583a2134e28e935aa59a (patch)
tree71fbcab1870a2bd028875539952f09e83797a2a6
parent69b82f8f527d9f8de2a689f1e311c0cc7a042a06 (diff)
Fix PHP8 warning (#8647)
-rw-r--r--CHANGELOG.md2
-rw-r--r--program/actions/mail/index.php5
2 files changed, 5 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 672efea0f..0fa12ca8c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,7 +6,7 @@
- Support for HAproxy protocol header in IMAP connections (#8625)
- Enigma: Support Kolab's Web Of Anti-Trust feature (#8626)
- Remove use of utf8_encode() and utf8_decode() functions deprecated in PHP 8.2
-- Fix various PHP 8.1 warnings (#8628, #8644, #8667, #8656)
+- Fix various PHP 8.1 warnings (#8628, #8644, #8667, #8656, #8647)
- Password: Remove references to %c variable that has been removed before (#8633)
- Fix anchor links in HTML mail (#8632)
- Fix bug where config creation in Installer did ignore options in the form (#8634)
diff --git a/program/actions/mail/index.php b/program/actions/mail/index.php
index 269d34178..d142c7a12 100644
--- a/program/actions/mail/index.php
+++ b/program/actions/mail/index.php
@@ -549,9 +549,12 @@ class rcmail_action_mail_index extends rcmail_action
$cont = rcube::SQ($last_folder_name);
}
- else {
+ else if (isset($header->$col)) {
$cont = rcube::SQ($header->$col);
}
+ else {
+ $cont = '';
+ }
$a_msg_cols[$col] = $cont;
}