diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/database/DB_utility.php | 6 |
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; } |