mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
Check that pdo is installed
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
bb22d38aa1
commit
c91bb98e5c
1 changed files with 4 additions and 1 deletions
|
|
@ -131,7 +131,10 @@ class Setup {
|
|||
* @return array
|
||||
*/
|
||||
protected function getAvailableDbDriversForPdo() {
|
||||
return \PDO::getAvailableDrivers();
|
||||
if (class_exists(\PDO::class)) {
|
||||
return \PDO::getAvailableDrivers();
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue