Skip to content

Commit

Permalink
Fix installer crash in absence of PDO and/or pdo_mysql extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
faf committed Apr 14, 2021
1 parent d7365d7 commit f1200c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mibew/libs/classes/Mibew/Maintenance/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ public function getLog()
*/
public function isInstalled()
{
if (!extension_loaded('PDO') || !extension_loaded('pdo_mysql')) {
return false;
}
return ($this->getDatabaseVersion() !== false);
}

Expand Down

0 comments on commit f1200c4

Please sign in to comment.