Bugfix: Work item 16956 - External links in Excel2010 files cause Fatal error

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83265 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
Mark Baker 2011-11-25 15:45:34 +00:00
parent 68a0930f67
commit 87c735a212

View File

@ -317,7 +317,7 @@ class PHPExcel_Cell
public function setCalculatedValue($pValue = null) public function setCalculatedValue($pValue = null)
{ {
if (!is_null($pValue)) { if (!is_null($pValue)) {
$this->_calculatedValue = $pValue; $this->_calculatedValue = (is_numeric($pValue)) ? (float) $pValue : $pValue;
} }
return $this->notifyCacheController(); return $this->notifyCacheController();