Skip to content

Commit 274a7be

Browse files
pocketarcRoger
andauthored
Fix PHP 8.x compatibility (#5)
Co-authored-by: Roger <roger.r.oliveira@unesp.br>
1 parent c9c0713 commit 274a7be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

system/helpers/text_helper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ function convert_accented_characters($str)
423423
$array_from = array_keys($foreign_characters);
424424
$array_to = array_values($foreign_characters);
425425
}
426+
427+
$str = (gettype($str) === 'NULL') ? '' : $str;
426428

427429
return preg_replace($array_from, $array_to, $str);
428430
}

0 commit comments

Comments
 (0)