From 48c2aaf859fa908a493a2c36cab09d7527bc4142 Mon Sep 17 00:00:00 2001 From: Roger Date: Tue, 4 Jul 2023 16:23:42 -0300 Subject: [PATCH] Fix PHP 8.x compatibility --- system/helpers/text_helper.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/helpers/text_helper.php b/system/helpers/text_helper.php index 506d45aca70..979e1458044 100644 --- a/system/helpers/text_helper.php +++ b/system/helpers/text_helper.php @@ -423,6 +423,8 @@ function convert_accented_characters($str) $array_from = array_keys($foreign_characters); $array_to = array_values($foreign_characters); } + + $str = (gettype($str) === 'NULL') ? '' : $str; return preg_replace($array_from, $array_to, $str); }