summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-06-16 14:56:49 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-06-16 14:56:56 +0200
commit3062723c343c25fe8e5d9482b699eaa4e4f6a6b7 (patch)
tree6128c84b5c1e2fc81686c87915049d16b1f1ab9a /lib
parentfd2c1839a1e2d306cc55c810c4d3741c67b9dab5 (diff)
downloadnextcloud-server-3062723c343c25fe8e5d9482b699eaa4e4f6a6b7.tar.gz
nextcloud-server-3062723c343c25fe8e5d9482b699eaa4e4f6a6b7.zip
default to sqlite3 over sqlite2 for new installations
Diffstat (limited to 'lib')
-rw-r--r--lib/setup.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/setup.php b/lib/setup.php
index ab4a786c435..c2757021f20 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -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';
}