@@ 2310-2313 (lines=4) @@ | ||
2307 | if ((in_array($wsTitle.'!'.$cellID,$this->debugLogStack)) && ($wsTitle != "\x00Wrk")) { |
|
2308 | if ($this->cyclicFormulaCount <= 0) { |
|
2309 | return $this->_raiseFormulaError('Cyclic Reference in Formula'); |
|
2310 | } elseif (($this->_cyclicFormulaCount >= $this->cyclicFormulaCount) && |
|
2311 | ($this->_cyclicFormulaCell == $wsTitle.'!'.$cellID)) { |
|
2312 | return $cellValue; |
|
2313 | } elseif ($this->_cyclicFormulaCell == $wsTitle.'!'.$cellID) { |
|
2314 | ++$this->_cyclicFormulaCount; |
|
2315 | if ($this->_cyclicFormulaCount >= $this->cyclicFormulaCount) { |
|
2316 | return $cellValue; |
|
@@ 2318-2323 (lines=6) @@ | ||
2315 | if ($this->_cyclicFormulaCount >= $this->cyclicFormulaCount) { |
|
2316 | return $cellValue; |
|
2317 | } |
|
2318 | } elseif ($this->_cyclicFormulaCell == '') { |
|
2319 | $this->_cyclicFormulaCell = $wsTitle.'!'.$cellID; |
|
2320 | if ($this->_cyclicFormulaCount >= $this->cyclicFormulaCount) { |
|
2321 | return $cellValue; |
|
2322 | } |
|
2323 | } |
|
2324 | } |
|
2325 | $this->debugLogStack[] = $wsTitle.'!'.$cellID; |
|
2326 | // Parse the formula onto the token stack and calculate the value |