Skip to content

Commit

Permalink
Fixed issue: SPSS export broken for numbers > 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Sep 21, 2020
1 parent cf1517f commit 3c29246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/export_helper.php
Expand Up @@ -86,7 +86,7 @@ function quoteSPSS($sText,$sQuoteChar,$aField)
if (strpos($aField['size'],'.')>0) {
$iDecimals=substr($aField['size'],strpos($aField['size'],'.')+1);
}
return number_format($sText,$iDecimals);
return number_format($sText,$iDecimals,'.','');
}
return $sQuoteChar.str_replace($sQuoteChar, $sQuoteChar.$sQuoteChar, $sText).$sQuoteChar;
}
Expand Down

0 comments on commit 3c29246

Please sign in to comment.