From 87c735a212eb24cbb57cbdec35686595f1a3513e Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Fri, 25 Nov 2011 15:45:34 +0000 Subject: [PATCH] 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 --- Classes/PHPExcel/Cell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Cell.php b/Classes/PHPExcel/Cell.php index 93ebb72a..24915fde 100644 --- a/Classes/PHPExcel/Cell.php +++ b/Classes/PHPExcel/Cell.php @@ -317,7 +317,7 @@ class PHPExcel_Cell public function setCalculatedValue($pValue = null) { if (!is_null($pValue)) { - $this->_calculatedValue = $pValue; + $this->_calculatedValue = (is_numeric($pValue)) ? (float) $pValue : $pValue; } return $this->notifyCacheController();