Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Commit 4a18c9c

Browse files
author
Mark Baker
committed
Merge pull request #279 from EliuFlorez/patch-1
Update Calculation.php
2 parents dc97d2f + b990744 commit 4a18c9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: Classes/PHPExcel/Calculation.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -3324,7 +3324,8 @@ private function _processTokenStack($tokens, $cellID = NULL, PHPExcel_Cell $pCel
33243324
// echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].'<br />';
33253325
$this->_debugLog->writeDebugLog('Evaluating Cell ', $cellRef, ' in worksheet ', $matches[2]);
33263326
if ($pCellParent !== NULL) {
3327-
if ($this->_workbook->getSheetByName($matches[2])->cellExists($cellRef)) {
3327+
$cellSheet = $this->_workbook->getSheetByName($matches[2]);
3328+
if ($cellSheet && $cellSheet->cellExists($cellRef)) {
33283329
$cellValue = $this->extractCellRange($cellRef, $this->_workbook->getSheetByName($matches[2]), FALSE);
33293330
$pCell->attach($pCellParent);
33303331
} else {

0 commit comments

Comments
 (0)