From 982aa520b17d5598c39dd64e0464099595f4e1bc Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 12 Jan 2022 09:28:14 +0100 Subject: [PATCH] fix for PHP8 support https://www.hikashop.com/forum/payment-methods/903777-unable-to-create-new-payment-methode.html#338454 --- plg_hikashoppayment_platron/PG_Signature.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plg_hikashoppayment_platron/PG_Signature.php b/plg_hikashoppayment_platron/PG_Signature.php index 392af86..11956c4 100644 --- a/plg_hikashoppayment_platron/PG_Signature.php +++ b/plg_hikashoppayment_platron/PG_Signature.php @@ -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); @@ -189,4 +189,4 @@ private static function makeFlatParamsXML ( $xml, $parent_name = '' ) return $arrParams; } -} \ No newline at end of file +}