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 ); }