Skip to content

Commit

Permalink
[3.10] [PHP 8.1] Fixing mod_search Passing null to type string (jooml…
Browse files Browse the repository at this point in the history
…a#36792)

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 authored Jan 23, 2022
1 parent 61396f7 commit c0286f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mod_search/mod_search.php
Original file line number Diff line number Diff line change
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 c0286f0

Please sign in to comment.