From: Joe Hunt Date: Sun, 17 Oct 2021 08:54:08 +0000 (+0200) Subject: Curly braces {} in arrays replaced, by @kvvaradha. X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=f99d4e3d028d6dc1e43716dad6188090a5f34a25 Curly braces {} in arrays replaced, by @kvvaradha. --- diff --git a/reporting/includes/Workbook.php b/reporting/includes/Workbook.php index 04785f05..89573820 100644 --- a/reporting/includes/Workbook.php +++ b/reporting/includes/Workbook.php @@ -3277,7 +3277,7 @@ class Spreadsheet_Excel_Writer_Parser $col = 0; $col_ref_length = strlen($col_ref); for ($i = 0; $i < $col_ref_length; $i++) { - $col += (ord($col_ref{$i}) - ord('A') + 1) * pow(26, $expn); + $col += (ord($col_ref[$i]) - ord('A') + 1) * pow(26, $expn); $expn--; } @@ -3299,20 +3299,20 @@ class Spreadsheet_Excel_Writer_Parser $formula_length = strlen($this->_formula); // eat up white spaces if ($i < $formula_length) { - while ($this->_formula{$i} == " ") { + while ($this->_formula[$i] == " ") { $i++; } if ($i < ($formula_length - 1)) { - $this->_lookahead = $this->_formula{$i+1}; + $this->_lookahead = $this->_formula[$i+1]; } $token = ''; } while ($i < $formula_length) { - $token .= $this->_formula{$i}; + $token .= $this->_formula[$i]; if ($i < ($formula_length - 1)) { - $this->_lookahead = $this->_formula{$i+1}; + $this->_lookahead = $this->_formula[$i+1]; } else { $this->_lookahead = ''; } @@ -3327,7 +3327,7 @@ class Spreadsheet_Excel_Writer_Parser } if ($i < ($formula_length - 2)) { - $this->_lookahead = $this->_formula{$i+2}; + $this->_lookahead = $this->_formula[$i+2]; } else { // if we run out of characters _lookahead becomes empty $this->_lookahead = ''; } @@ -3475,7 +3475,7 @@ class Spreadsheet_Excel_Writer_Parser { $this->_current_char = 0; $this->_formula = $formula; - $this->_lookahead = $formula{1}; + $this->_lookahead = $formula[1]; $this->_advance(); $this->_parse_tree = $this->_condition(); }