Skip to content
Snippets Groups Projects
Commit a03898d9 authored by eileen's avatar eileen
Browse files

Code comments

parent c77f9b14
Branches
Tags
No related merge requests found
......@@ -70,13 +70,14 @@ class CRM_Core_Report_Excel {
else {
// loic1 : always enclose fields
//$value = ereg_replace("\015(\012)?", "\012", $value);
// Convert carriage return to line feed.
$value = preg_replace("/\015(\012)?/", "\012", $value);
if ((substr($value, 0, 1) == CRM_Core_DAO::VALUE_SEPARATOR) &&
(substr($value, -1, 1) == CRM_Core_DAO::VALUE_SEPARATOR)
) {
$strArray = explode(CRM_Core_DAO::VALUE_SEPARATOR, $value);
// Filter out empty value separated strings.
foreach ($strArray as $key => $val) {
if (trim($val) == '') {
unset($strArray[$key]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment