05-19-2015, 04:42 PM
The code for the csv export has a bug concerning the trimming of the last delimiter on a line.
The code
first trims the last character, and then also deletes the number of characters from the end of the string corresponding to the length of the delimiter. This deletes an extra character at the end of the line.
The correct code should be:
The code
PHP Code:
$out = substr(rtrim($out), 0, -strlen($delim)).$newline;
The correct code should be:
PHP Code:
$out = substr($out, 0, -strlen($delim)).$newline;