Skip to content

Commit

Permalink
Dev Fixed incorrect quote replacement in SPSSExportData() for export …
Browse files Browse the repository at this point in the history
…to R
  • Loading branch information
andrie committed Aug 21, 2012
1 parent f4fb8b3 commit c94c7cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/export_helper.php
Expand Up @@ -165,7 +165,7 @@ function SPSSExportData ($iSurveyID, $iLength, $na = '', $q='\'', $header=FALSE)
$strTmp=mb_substr(stripTagsFull($row[$fieldno]), 0, $iLength);
if (trim($strTmp) != ''){
if($q=='\'') $strTemp=str_replace(array("'","\n","\r"),array("''",' ',' '),trim($strTmp));
if($q=='"') $strTemp=str_replace(array('"',"\n","\r"),array('---',' ',' '),trim($strTmp));
if($q=='"') $strTemp=str_replace(array('"',"\n","\r"),array('""',' ',' '),trim($strTmp));
/*
* Temp quick fix for replacing decimal dots with comma's
if (isNumericExtended($strTemp)) {
Expand Down

0 comments on commit c94c7cf

Please sign in to comment.