From b9907446a3146014cdc17761559441b5d2ede1cc Mon Sep 17 00:00:00 2001 From: Eliu Florez Date: Wed, 4 Dec 2013 22:46:55 -0430 Subject: [PATCH] Update Calculation.php PHPExcel Fatal error: Call to a member function cellExists() line: 3327 --- Classes/PHPExcel/Calculation.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Calculation.php b/Classes/PHPExcel/Calculation.php index 19e8edd9..4e70972a 100644 --- a/Classes/PHPExcel/Calculation.php +++ b/Classes/PHPExcel/Calculation.php @@ -3324,7 +3324,8 @@ class PHPExcel_Calculation { // echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].'
'; $this->_debugLog->writeDebugLog('Evaluating Cell ', $cellRef, ' in worksheet ', $matches[2]); if ($pCellParent !== NULL) { - if ($this->_workbook->getSheetByName($matches[2])->cellExists($cellRef)) { + $cellSheet = $this->_workbook->getSheetByName($matches[2]); + if ($cellSheet && $cellSheet->cellExists($cellRef)) { $cellValue = $this->extractCellRange($cellRef, $this->_workbook->getSheetByName($matches[2]), FALSE); $pCell->attach($pCellParent); } else {