diff options
author | prcrst <prcrst@hush.com> | 2012-01-03 12:37:33 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2012-01-03 15:58:48 +0100 |
commit | 868a3b5364af550492794f2093ce0aa07b938c6c (patch) | |
tree | 41443e6c31be5ddfde71eddc57f3459117f74fb1 /lib/util.php | |
parent | 9e9bc1430b6b31be67a346421c1989c2d44fad11 (diff) | |
download | nextcloud-server-868a3b5364af550492794f2093ce0aa07b938c6c.tar.gz nextcloud-server-868a3b5364af550492794f2093ce0aa07b938c6c.zip |
Fix sqlite detection for Ubuntu 11.10
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index 9cf78da6e90..009119b54a9 100644 --- a/lib/util.php +++ b/lib/util.php @@ -175,7 +175,7 @@ class OC_Util { $errors=array(); //check for database drivers - if(!is_callable('sqlite_open') and !is_callable('mysql_connect') and !is_callable('pg_connect')){ + if(!(is_callable('sqlite_open') or class_exists('SQLite3')) 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" ); |