]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix sqlite detection for Ubuntu 11.10
authorprcrst <prcrst@hush.com>
Tue, 3 Jan 2012 11:37:33 +0000 (12:37 +0100)
committerRobin Appelman <icewind1991@gmail.com>
Tue, 3 Jan 2012 14:58:48 +0000 (15:58 +0100)
lib/util.php

index 9cf78da6e90a65f180fd5d234451c5e91e61838d..009119b54a94f458ba5f52e15bfb6f65d7d57980 100644 (file)
@@ -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" );