Skip to content

Commit

Permalink
[3.10] [PHP 8.1] Fixing mod_search Passing null to type string
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/modules/mod_search/mod_search.php on line 44`
  • Loading branch information
beat committed Jan 22, 2022
1 parent b2206b0 commit 60cbce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mod_search/mod_search.php
Expand Up @@ -41,7 +41,7 @@
$maxlength = $upper_limit;
$text = htmlspecialchars($params->get('text', JText::_('MOD_SEARCH_SEARCHBOX_TEXT')), ENT_COMPAT, 'UTF-8');
$label = htmlspecialchars($params->get('label', JText::_('MOD_SEARCH_LABEL_TEXT')), ENT_COMPAT, 'UTF-8');
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8');
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8');

if ($imagebutton)
{
Expand Down

0 comments on commit 60cbce4

Please sign in to comment.