summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJamie Burchell <jamieburchell@users.noreply.github.com>2022-02-01 15:24:04 +0100
committerGitHub <noreply@github.com>2022-02-01 15:24:04 +0100
commit7c68c379f554d8c53e8ccc1ec4660c4928c1d53a (patch)
treeb41e593e692bbdc0961a4516729397169e6fafcb
parent193df886a54e0cac8416327f763a1e61dc2a3053 (diff)
Fix PHP 8.1 deprecation
-rw-r--r--system/database/DB_utility.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php
index a843754b4..95230aa7d 100644
--- a/system/database/DB_utility.php
+++ b/system/database/DB_utility.php
@@ -257,6 +257,10 @@ abstract class CI_DB_utility {
$line = array();
foreach ($row as $item)
{
+ if (is_null($item))
+ {
+ $item = '';
+ }
$line[] = $enclosure.str_replace($enclosure, $enclosure.$enclosure, $item).$enclosure;
}
$out .= implode($delim, $line).$newline;