Skip to content

Commit

Permalink
Fix '0' value is empty, making column is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
GorbachevPavel committed Jul 21, 2016
1 parent f4b862a commit fdf5087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ExportMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ public function generateRow($model, $key, $index)
$this->_endCol++;
$cell = $this->_objPHPExcelSheet->setCellValue(
self::columnName($this->_endCol) . ($index + $this->_beginRow + 1),
empty($value) ? '' : strip_tags($value),
empty($value) && !strlen($value) ? '' : strip_tags($value),
true
);
$this->raiseEvent('onRenderDataCell', [$cell, $value, $model, $key, $index, $this]);
Expand Down

0 comments on commit fdf5087

Please sign in to comment.