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 +}