aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/functions_install.inc.php23
1 files changed, 14 insertions, 9 deletions
diff --git a/admin/include/functions_install.inc.php b/admin/include/functions_install.inc.php
index 48699cd29..7d8ae41e7 100644
--- a/admin/include/functions_install.inc.php
+++ b/admin/include/functions_install.inc.php
@@ -104,16 +104,21 @@ function available_engines()
}
}
- if ($engines['sqlite']['available'] && $engines['pdo-sqlite']['available'])
+ if ($engines['sqlite']['available'] and !$engines['pdo-sqlite']['available'])
{
- if ($GLOBALS['conf']['db_sqlite_default']=='native')
- {
- unset($engines['pdo-sqlite']);
- }
- else
- {
- unset($engines['sqlite']);
- }
+ unset($engines['pdo-sqlite']);
+ }
+ elseif ($engines['pdo-sqlite']['available'] and !$engines['sqlite']['available'])
+ {
+ unset($engines['sqlite']);
+ }
+ elseif (DEFAULT_DB_SQLITE=='native')
+ {
+ unset($engines['pdo-sqlite']);
+ }
+ else
+ {
+ unset($engines['sqlite']);
}
return $engines;