From fc8bb6c03befa515cafac92a1e3a5c211116f235 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 6 Apr 2020 20:48:22 +0200 Subject: [PATCH] Fixed issue with PHP 7.4 compatibility. --- .../external/google-api-php-client/service/Google_Utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/libraries/external/google-api-php-client/service/Google_Utils.php b/application/libraries/external/google-api-php-client/service/Google_Utils.php index be94902c..c74fe0df 100644 --- a/application/libraries/external/google-api-php-client/service/Google_Utils.php +++ b/application/libraries/external/google-api-php-client/service/Google_Utils.php @@ -55,7 +55,7 @@ class Google_Utils { $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 Google_Utils { } return $normalized; } -} \ No newline at end of file +}