Skip to content

Commit

Permalink
Update Zip.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zanysoft authored Oct 10, 2017
1 parent 2d0040d commit 4666637
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,16 +402,12 @@ public function extract($destination, $files = null) {
throw new Exception('Invalid extractable files');
}

$files = is_array($files) ? $files : is_string($files) ? [$files]: $files;
$files = is_array($files) ? $files : is_string($files) ? [$files]: $files;

if (@sizeof($files) != 0 ) {

$file_matrix = $files;

} else {

$file_matrix = $this->getArchiveFiles();

}

if ( !empty($this->password) ) $this->zip_archive->setPassword($this->password);
Expand Down

0 comments on commit 4666637

Please sign in to comment.