summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-23 19:54:06 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-23 19:54:06 +0200
commit754e2215748a2dc5d326d70b70675dc3b018e30c (patch)
treefc654e517d1694a9ca73be3688a2569898f2362c /system/database
parent3345ee5133e6cf83506a46b306b3df18cba14b0e (diff)
Fix the subdriver check
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB.php b/system/database/DB.php
index 638b51bdd..313728f07 100644
--- a/system/database/DB.php
+++ b/system/database/DB.php
@@ -156,7 +156,7 @@ function &DB($params = '', $query_builder_override = NULL)
$DB = new $driver($params);
// Check for a subdriver
- if ( ! empty($DB->subdriver) && empty($params['subdriver']))
+ if ( ! empty($DB->subdriver))
{
$driver_file = BASEPATH.'database/drivers/'.$param['dbdriver'].'/subdrivers/'.$params['dbdriver'].'_'.$params['subdriver'].'_driver.php';