Browse Source

Fix PHP warning (#9611)

backport-virtuser_file-email2user-fix
Aleksander Machniak 11 months ago
parent
commit
602a989697
  1. 2
      CHANGELOG.md
  2. 6
      program/actions/mail/index.php

2
CHANGELOG.md

@ -3,7 +3,7 @@
## Unreleased
- OAuth: Support standard authentication with short-living password received with OIDC token (#9530)
- Fix PHP deprecation warnings (#9616)
- Fix PHP warnings (#9616, #9611)
## Release 1.6.9

6
program/actions/mail/index.php

@ -1189,7 +1189,11 @@ class rcmail_action_mail_index extends rcmail_action
$style[$idx] = $idx . ': ' . $val;
}
$attrs['style'] = ($attrs['style'] ? trim($attrs['style'], ';') . '; ' : '') . implode('; ', $style);
if (isset($attrs['style'])) {
$attrs['style'] = trim($attrs['style'], '; ') . '; ' . implode('; ', $style);
} else {
$attrs['style'] = implode('; ', $style);
}
}
$out = html::tag('div', $attrs, $content);

Loading…
Cancel
Save