Mercurial > hg > rc2
diff program/lib/Roundcube/html.php @ 16:1866b439e6d3
Slowly cleaning up more php8 Warnings/deprecations
| author | Charlie Root |
|---|---|
| date | Mon, 06 Oct 2025 10:34:51 -0400 |
| parents | aff04b06b685 |
| children | b6a96bdd6b29 |
line wrap: on
line diff
--- a/program/lib/Roundcube/html.php Sat Sep 20 12:16:50 2025 -0400 +++ b/program/lib/Roundcube/html.php Mon Oct 06 10:34:51 2025 -0400 @@ -77,11 +77,11 @@ } $inline_tags = array('a','span','img'); - $suffix = $attrib['nl'] || ($content && $attrib['nl'] !== false && !in_array($tagname, $inline_tags)) ? "\n" : ''; + $suffix = ($attrib['nl']??null) || ($content && ($attrib['nl']??false) !== false && !in_array($tagname, $inline_tags)) ? "\n" : ''; $tagname = self::$lc_tags ? strtolower($tagname) : $tagname; if (isset($content) || in_array($tagname, self::$containers)) { - $suffix = $attrib['noclose'] ? $suffix : '</' . $tagname . '>' . $suffix; + $suffix = ($attrib['noclose']??null) ? $suffix : '</' . $tagname . '>' . $suffix; unset($attrib['noclose'], $attrib['nl']); return '<' . $tagname . self::attrib_string($attrib, $allowed) . '>' . $content . $suffix; }
