Skip to content

Commit

Permalink
[3.10] [PHP 8.1] Fixes beez modules.php null string param
Browse files Browse the repository at this point in the history
Fixes errors like `Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in templates/beez/html/modules.php on line 42`
  • Loading branch information
beat committed Jan 22, 2022
1 parent ad04fef commit fcd5647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/beez3/html/modules.php
Expand Up @@ -18,7 +18,7 @@ function modChrome_beezDivision($module, &$params, &$attribs)
{
$headerLevel = isset($attribs['headerLevel']) ? (int) $attribs['headerLevel'] : 3;
if (!empty ($module->content)) : ?>
<div class="moduletable<?php echo htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8'); ?>">
<div class="moduletable<?php echo htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); ?>">
<?php if ($module->showtitle) : ?>
<h<?php echo $headerLevel; ?>><?php echo $module->title; ?></h<?php echo $headerLevel; ?>>
<?php endif; ?>
Expand All @@ -39,7 +39,7 @@ function modChrome_beezHide($module, &$params, &$attribs)
if (!empty ($module->content)) { ?>

<div
class="moduletable_js <?php echo htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8');?>"><?php if ($module->showtitle) : ?>
class="moduletable_js <?php echo htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8');?>"><?php if ($module->showtitle) : ?>
<h<?php echo $headerLevel; ?> class="js_heading"> <?php echo $module->title; ?> <a href="#"
title="<?php echo JText::_('TPL_BEEZ3_CLICK'); ?>"
onclick="auf('module_<?php echo $module->id; ?>'); return false"
Expand Down

0 comments on commit fcd5647

Please sign in to comment.