From 7360cd57a714845c2ff3dbffcc2c3ba11c8a4408 Mon Sep 17 00:00:00 2001 From: Andreas Piening Date: Wed, 10 Mar 2010 23:59:30 +0000 Subject: [PATCH] MINOR: properly check the existance of SQLite3 class --- _config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.php b/_config.php index b92712e..30fae52 100644 --- a/_config.php +++ b/_config.php @@ -20,7 +20,7 @@ if(array_search($databaseConfig['type'], array('SQLiteDatabase', 'SQLite3Databas ); // The SQLite3 class is available in PHP 5.3 and newer - if($databaseConfig['type'] == 'SQLitePDODatabase' || version_compare(phpversion(), '5.3.0', '<')) { + if($databaseConfig['type'] == 'SQLitePDODatabase' || !class_exists('SQLite3')) { $databaseConfig['type'] = 'SQLitePDODatabase'; } else { $databaseConfig['type'] = 'SQLite3Database';