Fix installer crash in absence of PDO and/or pdo_mysql extensions

This commit is contained in:
Fedor A. Fetisov 2021-04-14 13:40:50 +03:00
parent d7365d719f
commit f1200c4999

View File

@ -98,6 +98,9 @@ class Installer
*/
public function isInstalled()
{
if (!extension_loaded('PDO') || !extension_loaded('pdo_mysql')) {
return false;
}
return ($this->getDatabaseVersion() !== false);
}