From c3bd05e7e3828e96f076f997c913927e6b0e8a27 Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Wed, 4 Sep 2019 12:13:08 +0200 Subject: [PATCH] Throw an error only if zip extension needed [MAILPOET-2330] --- lib/Subscribers/ImportExport/Export/Export.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Subscribers/ImportExport/Export/Export.php b/lib/Subscribers/ImportExport/Export/Export.php index f17864dc2f..f9f85aaacc 100644 --- a/lib/Subscribers/ImportExport/Export/Export.php +++ b/lib/Subscribers/ImportExport/Export/Export.php @@ -65,7 +65,7 @@ class Export { if (is_writable($this->export_path) === false) { throw new \Exception(__('The export file could not be saved on the server.', 'mailpoet')); } - if (!extension_loaded('zip')) { + if (!extension_loaded('zip') && ($this->export_format_option === 'xlsx')) { throw new \Exception(__('Export requires a ZIP extension to be installed on the host.', 'mailpoet')); } $callback = [