diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2021-07-05 09:49:05 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2021-07-05 09:49:05 +0200 |
commit | c91bb98e5ce0e1bd0775411a19d19f8eb862e285 (patch) | |
tree | e67f3ee94da967c68a5e52b0ba1b183f76ba2c49 /lib/private/Setup.php | |
parent | bb22d38aa10e58de0103aa57ecbdf60b167c59bb (diff) | |
download | nextcloud-server-c91bb98e5ce0e1bd0775411a19d19f8eb862e285.tar.gz nextcloud-server-c91bb98e5ce0e1bd0775411a19d19f8eb862e285.zip |
Check that pdo is installed
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private/Setup.php')
-rw-r--r-- | lib/private/Setup.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php index d39fa069286..a4873e63aa9 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -131,7 +131,10 @@ class Setup { * @return array */ protected function getAvailableDbDriversForPdo() { - return \PDO::getAvailableDrivers(); + if (class_exists(\PDO::class)) { + return \PDO::getAvailableDrivers(); + } + return []; } /** |