Skip to content

Commit

Permalink
Fix PHP warning (#9611)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Sep 7, 2024
1 parent 4ca1984 commit e36dd3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
- Fix attachment name decoding when 'charset' parameter exists in the headers (#9376)
- Fix deprecated (in PHP 8.4) use of session_set_save_handler() (#9060)
- Fix potential HTTP protocol version mismatch (#8982)
- Fix PHP deprecation warnings (#9616)
- Fix PHP warnings (#9616, #9611)

## Release 1.6.9

Expand Down
6 changes: 5 additions & 1 deletion program/actions/mail/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,11 @@ public static function washtml_callback($tagname, $attrib, $content, $washtml)
$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);
Expand Down

0 comments on commit e36dd3a

Please sign in to comment.