From 8500b51f9d436f70d8fb224176f7c0f4dcdf0436 Mon Sep 17 00:00:00 2001 From: Mathieu Dubois Date: Thu, 6 Jan 2022 13:09:58 +0100 Subject: [PATCH] fix: Array and string offset access syntax with curly braces --- HTML/Template/ITX.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HTML/Template/ITX.php b/HTML/Template/ITX.php index d8f3591..f163f81 100755 --- a/HTML/Template/ITX.php +++ b/HTML/Template/ITX.php @@ -696,7 +696,7 @@ function buildFunctionlist() while ($head != '' && $args2 = $this->getValue($head, ',')) { $arg2 = trim($args2); - $args[] = ('"' == $arg2{0} || "'" == $arg2{0}) ? + $args[] = ('"' == $arg2[0] || "'" == $arg2[0]) ? substr($arg2, 1, -1) : $arg2; if ($arg2 == $head) {