summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJamie Burchell <jamieburchell@users.noreply.github.com>2022-02-01 17:57:24 +0100
committerGitHub <noreply@github.com>2022-02-01 17:57:24 +0100
commitad86fa92cd59ac1255af1dd5170919f6fbf73786 (patch)
treecbbc64459585b4a6096d38a4ea209622fb57ef62
parent7c68c379f554d8c53e8ccc1ec4660c4928c1d53a (diff)
Typecast to string
-rw-r--r--system/database/DB_utility.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php
index 95230aa7d..dc733ebc8 100644
--- a/system/database/DB_utility.php
+++ b/system/database/DB_utility.php
@@ -257,11 +257,7 @@ 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;
+ $line[] = $enclosure.str_replace($enclosure, $enclosure.$enclosure, (string) $item).$enclosure;
}
$out .= implode($delim, $line).$newline;
}