Browse Source

Fix PHP fatal error on an undefined constant in contacts import action (#8277)

pull/8503/head
Aleksander Machniak 4 years ago
parent
commit
80b453c24a
  1. 1
      CHANGELOG.md
  2. 2
      program/actions/contacts/import.php

1
CHANGELOG.md

@ -18,6 +18,7 @@
- Fix charset conversion errors on PHP < 8 for charsets not supported by mbstring (#8252)
- Fix bug where adding a contact to trusted senders via "Always allow from..." button didn't work (#8264, #8268)
- Fix bug with show_images setting where option 1 and 3 were swapped (#8268)
- Fix PHP fatal error on an undefined constant in contacts import action (#8277)
## Release 1.5.0

2
program/actions/contacts/import.php

@ -256,7 +256,7 @@ class rcmail_action_contacts_import extends rcmail_action_contacts_index
$rcmail->output->command('parent.import_state_set', self::$stats->inserted ? 'reload' : 'ok');
}
else {
if ($upload_error == UPLOAD_ERR_CSV_FIELDS) {
if ($upload_error == self::UPLOAD_ERR_CSV_FIELDS) {
$rcmail->output->show_message('csvfilemismatch', 'error');
}
else {

Loading…
Cancel
Save