summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Köb <daniel.koeb@peony.at>2011-12-30 20:38:56 +0100
committerBrice Maron <brice@bmaron.net>2011-12-30 21:09:29 +0100
commiteb4cd869107d4afa1c259751e765ca39defb9279 (patch)
tree07ca80f99101e7478142129e1decd923b4785d22 /lib
parent31663cfff5c32b90bf41c6af46f3042db8699fe2 (diff)
downloadnextcloud-server-eb4cd869107d4afa1c259751e765ca39defb9279.tar.gz
nextcloud-server-eb4cd869107d4afa1c259751e765ca39defb9279.zip
Include PostgreSQL when checking for available database drivers.
Signed-off-by: Brice Maron <brice@bmaron.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php
index 0f79948bc24..9cf78da6e90 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -175,8 +175,8 @@ class OC_Util {
$errors=array();
//check for database drivers
- if(!is_callable('sqlite_open') and !is_callable('mysql_connect')){
- $errors[]=array('error'=>'No database drivers (sqlite or mysql) installed.<br/>','hint'=>'');//TODO: sane hint
+ if(!is_callable('sqlite_open') and !is_callable('mysql_connect') and !is_callable('pg_connect')){
+ $errors[]=array('error'=>'No database drivers (sqlite, mysql, or postgresql) installed.<br/>','hint'=>'');//TODO: sane hint
}
$CONFIG_DBTYPE = OC_Config::getValue( "dbtype", "sqlite" );
$CONFIG_DBNAME = OC_Config::getValue( "dbname", "owncloud" );