diff options
author | Andrey Andreev <narf@devilix.net> | 2015-05-21 00:10:36 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-05-21 00:10:36 +0200 |
commit | b8cd5e657363795f127ae5e02e69972627b3fe9c (patch) | |
tree | 2c815ed41ecb857f3b2b5e7ae49fde6bef48cb86 /system/database/DB_utility.php | |
parent | 3a1975956dfd99dd2cab05e530c8aecb0984b4a9 (diff) |
Fix a bug in the CSV export DB utility
Reported via the forums: http://forum.codeigniter.com/thread-61810.html
Diffstat (limited to 'system/database/DB_utility.php')
-rw-r--r-- | system/database/DB_utility.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php index 57356ac53..78398ea83 100644 --- a/system/database/DB_utility.php +++ b/system/database/DB_utility.php @@ -249,7 +249,7 @@ abstract class CI_DB_utility { $out .= $enclosure.str_replace($enclosure, $enclosure.$enclosure, $name).$enclosure.$delim; } - $out = substr(rtrim($out), 0, -strlen($delim)).$newline; + $out = substr($out, 0, -strlen($delim)).$newline; // Next blast through the result array and build out the rows while ($row = $query->unbuffered_row('array')) @@ -258,7 +258,7 @@ abstract class CI_DB_utility { { $out .= $enclosure.str_replace($enclosure, $enclosure.$enclosure, $item).$enclosure.$delim; } - $out = substr(rtrim($out), 0, -strlen($delim)).$newline; + $out = substr($out, 0, -strlen($delim)).$newline; } return $out; |