Skip to content
Snippets Groups Projects
Unverified Commit 8d5c32fd authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #16248 from eileenmcnaughton/cc

[NFC] Code comments
parents 65444296 a03898d9
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