Skip to content

Commit

Permalink
Fixed issue #8418: Export to excel error "Syntax error: , lookahead: …
Browse files Browse the repository at this point in the history
…, current char: 0" when information starts with @
  • Loading branch information
c-schmitz committed Dec 2, 2013
1 parent 95b8f8a commit a0a9f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/admin/export/ExcelWriter.php
Expand Up @@ -83,7 +83,7 @@ protected function outputRecord($headers, $values, FormattingOptions $oOptions)

private function excelEscape($value)
{
if (substr($value, 0, 1) == '=')
if ((substr($value, 0, 1) == '=') || (substr($value, 0, 1) == '@'))
{
$value = '"'.$value.'"';
}
Expand Down

0 comments on commit a0a9f54

Please sign in to comment.