]> source.dussan.org Git - nextcloud-server.git/commitdiff
default to sqlite3 over sqlite2 for new installations
authorRobin Appelman <icewind1991@gmail.com>
Thu, 16 Jun 2011 12:56:49 +0000 (14:56 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Thu, 16 Jun 2011 12:56:56 +0000 (14:56 +0200)
lib/setup.php

index ab4a786c4350ade6aced0802aebec590971decd7..c2757021f20433f7348d37b7734ae239f2a93a47 100644 (file)
@@ -66,8 +66,8 @@ class OC_SETUP {
                        $password = htmlspecialchars_decode($options['adminpass']);
                        $datadir = htmlspecialchars_decode($options['directory']);
                        
-                       //if only sqlite3 is available use that.
-                       if($dbtype=='sqlite' and !is_callable('sqlite_open')){
+                       //use sqlite3 when available, otherise sqlite2 will be used.
+                       if($dbtype=='sqlite' and class_exists('SQLite3')){
                                $dbtype='sqlite3';
                        }