From 5d3c61704409ddc13dce53e9d9a6bb63bb267778 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sun, 23 Jan 2022 18:37:09 +0100 Subject: [PATCH] php fix in google-api/service/apiUtils.php Signed-off-by: Janos SUTO --- webui/google-api/service/apiUtils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/google-api/service/apiUtils.php b/webui/google-api/service/apiUtils.php index c692ec4e..e8298b41 100644 --- a/webui/google-api/service/apiUtils.php +++ b/webui/google-api/service/apiUtils.php @@ -55,7 +55,7 @@ class apiUtils { $strlenVar = strlen($str); $d = $ret = 0; for ($count = 0; $count < $strlenVar; ++ $count) { - $ordinalValue = ord($str{$ret}); + $ordinalValue = ord($str[$ret]); switch (true) { case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)): // characters U-00000000 - U-0000007F (same as ASCII) @@ -114,4 +114,4 @@ class apiUtils { } return $normalized; } -} \ No newline at end of file +}