mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-16 21:16:57 +00:00
On the chance that a cell doesn't have a defined style but it's still trying to be formatted
This commit is contained in:
@@ -2426,7 +2426,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
|
||||
$style = $this->_parent->getCellXfByIndex($cell->getXfIndex());
|
||||
$returnValue[$rRef][$cRef] = PHPExcel_Style_NumberFormat::toFormattedString(
|
||||
$returnValue[$rRef][$cRef],
|
||||
($style->getNumberFormat()) ?
|
||||
($style && $style->getNumberFormat()) ?
|
||||
$style->getNumberFormat()->getFormatCode() :
|
||||
PHPExcel_Style_NumberFormat::FORMAT_GENERAL
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user