Merge pull request #27796 from nextcloud/bug/26839/check-pdo

Check that pdo is installed
This commit is contained in:
Lukas Reschke 2021-07-05 17:24:39 +02:00 committed by GitHub
commit 931a871533
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,7 +131,10 @@ class Setup {
* @return array
*/
protected function getAvailableDbDriversForPdo() {
return \PDO::getAvailableDrivers();
if (class_exists(\PDO::class)) {
return \PDO::getAvailableDrivers();
}
return [];
}
/**