Skip to content

Commit

Permalink
[3.10] [PHP 8.1] Fixes protostar modules.php null string param
Browse files Browse the repository at this point in the history
Fixes `Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/beat/www/j/templates/protostar/html/modules.php on line 47`
  • Loading branch information
beat committed Jan 22, 2022
1 parent a5444d7 commit ad04fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/protostar/html/modules.php
Expand Up @@ -44,7 +44,7 @@ function modChrome_well($module, &$params, &$attribs)

if ($module->content)
{
echo '<' . $moduleTag . ' class="well ' . htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8') . $moduleClass . '">';
echo '<' . $moduleTag . ' class="well ' . htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8') . $moduleClass . '">';

if ($module->showtitle)
{
Expand Down

0 comments on commit ad04fef

Please sign in to comment.