Skip to content

Commit

Permalink
Update Calculation.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mherbold authored Jun 6, 2024
1 parent f709ec4 commit fd71d70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/PHPExcel/Calculation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2669,11 +2669,11 @@ public function parseFormula($formula)
// Basic validation that this is indeed a formula
// We return an empty array if not
$formula = trim($formula);
if ((!isset($formula{0})) || ($formula{0} != '=')) {
if ((!isset($formula[0])) || ($formula[0] != '=')) {
return array();
}
$formula = ltrim(substr($formula, 1));
if (!isset($formula{0})) {
if (!isset($formula[0])) {
return array();
}

Expand Down

0 comments on commit fd71d70

Please sign in to comment.