From 466663746c92154c48a2d490efc6724f9f6e9652 Mon Sep 17 00:00:00 2001 From: Mubashar Ahmad Date: Mon, 9 Oct 2017 20:22:41 -0700 Subject: [PATCH] Update Zip.php --- src/Zip.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Zip.php b/src/Zip.php index bce9237..2c19ce7 100644 --- a/src/Zip.php +++ b/src/Zip.php @@ -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);