summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Hofsaess <[email protected]>2021-12-12 18:58:18 +0100
committerFlorian Hofsaess <[email protected]>2021-12-12 20:41:57 +0100
commit667f647259f4b1bec95acf37bc52c34967d93f58 (patch)
treef333d7538ea5b4120eb73d7eac2a0a246c6f8849
parentfc5f5e4e5017180222cc3f9ee0ac26310f29c7c1 (diff)
check on zip extension before going forward
-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]);