Update Calculation.php
PHPExcel Fatal error: Call to a member function cellExists() line: 3327
This commit is contained in:
parent
7a90c5b888
commit
b9907446a3
|
@ -3324,7 +3324,8 @@ class PHPExcel_Calculation {
|
||||||
// echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].'<br />';
|
// echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].'<br />';
|
||||||
$this->_debugLog->writeDebugLog('Evaluating Cell ', $cellRef, ' in worksheet ', $matches[2]);
|
$this->_debugLog->writeDebugLog('Evaluating Cell ', $cellRef, ' in worksheet ', $matches[2]);
|
||||||
if ($pCellParent !== NULL) {
|
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);
|
$cellValue = $this->extractCellRange($cellRef, $this->_workbook->getSheetByName($matches[2]), FALSE);
|
||||||
$pCell->attach($pCellParent);
|
$pCell->attach($pCellParent);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue