summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-28 13:46:24 +0200
committerAndrey Andreev <narf@bofh.bg>2012-03-28 13:46:24 +0200
commit6202a3c822a7b68040de2c5e0528bc1ec1c50758 (patch)
tree9a921fcec989741f1cd63bde77438926d596d155 /system
parent26c708514e3ca04a1c373efd166b5c17c31e3796 (diff)
Some more unneeded brackets removed
Diffstat (limited to 'system')
-rw-r--r--system/database/DB_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index f0b8e7789..553f70c45 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -291,7 +291,7 @@ abstract class CI_DB_driver {
}
// Verify table prefix and replace if necessary
- if ( ($this->dbprefix != '' && $this->swap_pre != '') && ($this->dbprefix != $this->swap_pre) )
+ if ($this->dbprefix != '' && $this->swap_pre != '' && $this->dbprefix != $this->swap_pre)
{
$sql = preg_replace('/(\W)'.$this->swap_pre.'(\S+?)/', '\\1'.$this->dbprefix.'\\2', $sql);
}