Minor fix to operator check

This commit is contained in:
MarkBaker 2019-07-27 00:10:43 +02:00 committed by Adrien Crivelli
parent a691516664
commit f7d2ebac40
1 changed files with 1 additions and 1 deletions

View File

@ -3623,7 +3623,7 @@ class Calculation
// If the last entry on the stack was a : operator, then we have a cell range reference // If the last entry on the stack was a : operator, then we have a cell range reference
$testPrevOp = $stack->last(1); $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 we have a worksheet reference, then we're playing with a 3D reference
if ($matches[2] == '') { if ($matches[2] == '') {
// Otherwise, we 'inherit' the worksheet reference from the start cell reference // Otherwise, we 'inherit' the worksheet reference from the start cell reference