From d8a0b0c3f9759b364e09d013531fa2ddb3db06c5 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 16 Mar 2022 15:50:01 +0530 Subject: [PATCH] fix issue #41:Array and string offset access syntax with curly braces is no longer supported --- src/Modules/FileOps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Modules/FileOps.php b/src/Modules/FileOps.php index 8181c11..3f0d245 100644 --- a/src/Modules/FileOps.php +++ b/src/Modules/FileOps.php @@ -746,7 +746,7 @@ protected static function _zip_folder_ziparchive( $zip_base, $folder, $to, $z ) $filePath = "$folder/$file"; $filePathRel = str_replace( $zip_base, '', $filePath ); - if ( $filePathRel{0} === '/' ) { + if ( $filePathRel[0] === '/' ) { $filePathRel = substr( $filePathRel, 1 ); }