Fixed issue with PHP 7.4 compatibility.

This commit is contained in:
Alex Tselegidis 2020-04-06 20:48:22 +02:00
parent 6b83cc6083
commit fc8bb6c03b

View file

@ -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)