Fix error in handling cell reference when operand is a 1-d array

This commit is contained in:
MarkBaker 2022-02-10 10:41:49 +01:00
parent 83ff74b97e
commit 782644684b
1 changed files with 6 additions and 0 deletions

View File

@ -4368,6 +4368,12 @@ class Calculation
if (($operandData['reference'] === null) && (is_array($operand))) {
$rKeys = array_keys($operand);
$rowKey = array_shift($rKeys);
if (is_array($operand[$rowKey]) === false) {
$operandData['value'] = $operand[$rowKey];
return $operand[$rowKey];
}
$cKeys = array_keys(array_keys($operand[$rowKey]));
$colKey = array_shift($cKeys);
if (ctype_upper("$colKey")) {