Skip to content

Commit

Permalink
fix for PHP8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
hikashop-nicolas authored Jan 12, 2022
1 parent fc1d502 commit 982aa52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plg_hikashoppayment_platron/PG_Signature.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static function getScriptNameFromUrl ( $url )
{
$path = parse_url($url, PHP_URL_PATH);
$len = strlen($path);
if ( $len == 0 || '/' == $path{$len-1} ) {
if ( $len == 0 || '/' == $path[$len-1] ) {
return "";
}
return basename($path);
Expand Down Expand Up @@ -189,4 +189,4 @@ private static function makeFlatParamsXML ( $xml, $parent_name = '' )

return $arrParams;
}
}
}

0 comments on commit 982aa52

Please sign in to comment.