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 f3c526e commit 602a989
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 @@ -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

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 @@ -1189,7 +1189,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 602a989

Please sign in to comment.