summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.archiver.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/system/system.archiver.inc b/modules/system/system.archiver.inc
index cd9c9f48c..5a0972840 100644
--- a/modules/system/system.archiver.inc
+++ b/modules/system/system.archiver.inc
@@ -106,7 +106,12 @@ class ArchiverZip implements ArchiverInterface {
}
public function extract($path, Array $files = array()) {
- $this->zip->extractTo($path, $files);
+ if ($files) {
+ $this->zip->extractTo($path, $files);
+ }
+ else {
+ $this->zip->extractTo($path);
+ }
return $this;
}