Skip to content

Commit

Permalink
fix issue AceIDE#41:Array and string offset access syntax with curly …
Browse files Browse the repository at this point in the history
…braces is no longer supported
  • Loading branch information
abhishekpawan committed Mar 16, 2022
1 parent 4aa0f49 commit d8a0b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/FileOps.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down

0 comments on commit d8a0b0c

Please sign in to comment.