summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfox <[email protected]>2021-12-13 07:42:59 +0300
committerfox <[email protected]>2021-12-13 07:42:59 +0300
commit030e7f3fb202c1bd81d59085e0cf4de756d92531 (patch)
treef333d7538ea5b4120eb73d7eac2a0a246c6f8849
parentfc5f5e4e5017180222cc3f9ee0ac26310f29c7c1 (diff)
parent667f647259f4b1bec95acf37bc52c34967d93f58 (diff)
Merge pull request 'check on zip extension before going forward' (#2) from s1ructure/ttrss-data-migration:fix/check-zip-extension into master
Reviewed-on: https://git.tt-rss.org/fox/ttrss-data-migration/pulls/2
-rw-r--r--init.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.php b/init.php
index aa59ce2..4d17845 100644
--- a/init.php
+++ b/init.php
@@ -48,6 +48,11 @@ class Data_Migration extends Plugin {
exit(1);
}
+ if (!class_exists(ZipArchive::class)) {
+ Debug::log("error: seems like zip extension for your php installation is missing");
+ exit(1);
+ }
+
$sth = $this->pdo->prepare("SELECT id FROM ttrss_users WHERE login = ?");
$sth->execute([$user]);