From: prcrst Date: Tue, 3 Jan 2012 11:37:33 +0000 (+0100) Subject: Fix sqlite detection for Ubuntu 11.10 X-Git-Tag: v3.0~64^2~6^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=868a3b5364af550492794f2093ce0aa07b938c6c;p=nextcloud-server.git Fix sqlite detection for Ubuntu 11.10 --- 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.
','hint'=>'');//TODO: sane hint } $CONFIG_DBTYPE = OC_Config::getValue( "dbtype", "sqlite" );