Skip to content

Commit

Permalink
Minor fix to operator check
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkBaker authored and PowerKiKi committed Sep 20, 2019
1 parent a691516 commit f7d2eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Calculation/Calculation.php
Original file line number Diff line number Diff line change
Expand Up @@ -3623,7 +3623,7 @@ private function _parseFormula($formula, Cell $pCell = null)

// If the last entry on the stack was a : operator, then we have a cell range reference
$testPrevOp = $stack->last(1);
if ($testPrevOp['value'] == ':') {
if ($testPrevOp !== null && $testPrevOp['value'] == ':') {
// If we have a worksheet reference, then we're playing with a 3D reference
if ($matches[2] == '') {
// Otherwise, we 'inherit' the worksheet reference from the start cell reference
Expand Down

0 comments on commit f7d2eba

Please sign in to comment.