summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-01-27 20:18:48 +0100
committerAndrey Andreev <narf@bofh.bg>2012-01-27 20:18:48 +0100
commita7c0656a530ca405d2ed18b8e9bd252975bb8505 (patch)
tree708663096276b9fce1dde66431551aa15e65b5dd /system/database/DB_driver.php
parentc323493380eba2f1418380f35db0c0bf52b82838 (diff)
Removed a few more unnecessary lines
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 03fc8a698..39eb1cc8a 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -180,12 +180,7 @@ class CI_DB_driver {
else
{
// We've selected the DB. Now we set the character set
- if ( ! $this->db_set_charset($this->char_set, $this->dbcollat))
- {
- return FALSE;
- }
-
- return TRUE;
+ return $this->db_set_charset($this->char_set, $this->dbcollat);
}
}
@@ -247,9 +242,7 @@ class CI_DB_driver {
// Some DBs have functions that return the version, and don't run special
// SQL queries per se. In these instances, just return the result.
- $driver_version_exceptions = array('oci8', 'sqlite', 'cubrid', 'pdo', 'mysqli');
-
- if (in_array($this->dbdriver, $driver_version_exceptions))
+ if (in_array($this->dbdriver, array('oci8', 'sqlite', 'cubrid', 'pdo', 'mysqli'))
{
return $sql;
}