diff options
author | Florian Hofsaess <[email protected]> | 2021-12-12 18:58:18 +0100 |
---|---|---|
committer | Florian Hofsaess <[email protected]> | 2021-12-12 20:41:57 +0100 |
commit | 667f647259f4b1bec95acf37bc52c34967d93f58 (patch) | |
tree | f333d7538ea5b4120eb73d7eac2a0a246c6f8849 | |
parent | fc5f5e4e5017180222cc3f9ee0ac26310f29c7c1 (diff) |
check on zip extension before going forward
-rw-r--r-- | init.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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]); |