From ad7e0a7b323776125bedabaab1aaa1b858f0cdb3 Mon Sep 17 00:00:00 2001 From: Uriahs Victor Date: Sun, 28 Jun 2020 14:14:37 -0400 Subject: [PATCH] Update FileOps.php Fix "Array and string offset access syntax with curly braces is deprecated" error --- 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 ); }