Skip to content

Commit

Permalink
Merge pull request #38 from nguyenanhung/v3.2.0-develop
Browse files Browse the repository at this point in the history
Fix PHP 8.x compatibility - convert_accented_characters
  • Loading branch information
nguyenanhung committed Aug 4, 2023
2 parents 333fa14 + e0b0186 commit acb6d7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/helpers/text_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@ function convert_accented_characters($str)
$array_to = array_values($foreign_characters);
}

if (is_null($str)) {
$str = '';
}

return preg_replace($array_from, $array_to, $str);
}
}
Expand Down

0 comments on commit acb6d7a

Please sign in to comment.