From f1200c4999721a7026e5f06a47e9df6f10b402e9 Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Wed, 14 Apr 2021 13:40:50 +0300 Subject: [PATCH] Fix installer crash in absence of PDO and/or pdo_mysql extensions --- src/mibew/libs/classes/Mibew/Maintenance/Installer.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mibew/libs/classes/Mibew/Maintenance/Installer.php b/src/mibew/libs/classes/Mibew/Maintenance/Installer.php index 0a981dfe..8bb8fed1 100644 --- a/src/mibew/libs/classes/Mibew/Maintenance/Installer.php +++ b/src/mibew/libs/classes/Mibew/Maintenance/Installer.php @@ -98,6 +98,9 @@ class Installer */ public function isInstalled() { + if (!extension_loaded('PDO') || !extension_loaded('pdo_mysql')) { + return false; + } return ($this->getDatabaseVersion() !== false); }