diff --git a/extend/catcher/library/Zip.php b/extend/catcher/library/Zip.php index e9e983d..5800d20 100644 --- a/extend/catcher/library/Zip.php +++ b/extend/catcher/library/Zip.php @@ -42,7 +42,7 @@ class Zip throw new \Exception("make zip muse set [zip] extension"); } - $this->zipArchive->open($zip, $flags); + $this->zipArchive->open($zip, $flags ? : \ZipArchive::CREATE); return $this; }