Skip to content

Commit acb6d7a

Browse files
authored
Merge pull request #38 from nguyenanhung/v3.2.0-develop
Fix PHP 8.x compatibility - convert_accented_characters
2 parents 333fa14 + e0b0186 commit acb6d7a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

system/helpers/text_helper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,10 @@ function convert_accented_characters($str)
395395
$array_to = array_values($foreign_characters);
396396
}
397397

398+
if (is_null($str)) {
399+
$str = '';
400+
}
401+
398402
return preg_replace($array_from, $array_to, $str);
399403
}
400404
}

0 commit comments

Comments
 (0)