Hi, folks. While using the csv_from_result function, I noticed that each line had an extra delimiter (a comma) at the end of the line.
For example:
“Birth Date”,“Record Creation Date”,“Record Last Update”,
Checking the code for csv_from_result (system/database/DB_utility.php, line 222), it appears that this is intentional:
foreach ($row as $item)
{
$out .= $enclosure.str_replace($enclosure, $enclosure.$enclosure, item).$enclosure.$delim;
}
$out = rtrim($out);
$out .= $newline;
I would expect that the last delimiter would be removed before the adding the newline character.
Any thoughts? Thanks.
