From fd71d706b7ba5125096ceb7c2db16bcaf44bf3d2 Mon Sep 17 00:00:00 2001 From: Marvin Herbold <521887+mherbold@users.noreply.github.com> Date: Thu, 6 Jun 2024 09:59:32 -0700 Subject: [PATCH] Update Calculation.php --- Classes/PHPExcel/Calculation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/PHPExcel/Calculation.php b/Classes/PHPExcel/Calculation.php index 663b947eb..b90a23133 100644 --- a/Classes/PHPExcel/Calculation.php +++ b/Classes/PHPExcel/Calculation.php @@ -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(); }