X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2FWorkbook.php;h=89573820d7d1d293988b0e4a4536bd21ddc3aaeb;hb=181a41d711bef3cec7ca559e35e9e12d1d4f4515;hp=04785f052bfdf1a447bf5209ffcec27587e7f1e0;hpb=1ea4eba5d15555990a7f0c79c5199b39b48ea79e;p=fa-stable.git 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(); }