Skip to content

Commit

Permalink
Merge pull request #257 from LDAV/patch-1
Browse files Browse the repository at this point in the history
Fix php 7.4 error
  • Loading branch information
mk-j authored Jan 11, 2020
2 parents 39101b7 + 55dd336 commit 0057952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xlsxwriter.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ protected function writeCell(XLSXWriter_BuffererWriter &$file, $row_number, $col

if (!is_scalar($value) || $value==='') { //objects, array, empty
$file->write('<c r="'.$cell_name.'" s="'.$cell_style_idx.'"/>');
} elseif (is_string($value) && $value{0}=='='){
} elseif (is_string($value) && $value[0]=='='){
$file->write('<c r="'.$cell_name.'" s="'.$cell_style_idx.'" t="s"><f>'.self::xmlspecialchars($value).'</f></c>');
} elseif ($num_format_type=='n_date') {
$file->write('<c r="'.$cell_name.'" s="'.$cell_style_idx.'" t="n"><v>'.intval(self::convert_date_time($value)).'</v></c>');
Expand Down

0 comments on commit 0057952

Please sign in to comment.