summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-29 23:13:17 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-29 23:13:17 +0100
commit4173823ba1b45955d63cb5e8d60f02312e345bda (patch)
tree96a2cbe539eeebbc895640645005369ea5919712 /system/database
parentcc4b00347c9ff061488bc88194002be701f4190f (diff)
Fix #2041
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_query_builder.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php
index 9bd535b0e..e77fba63d 100644
--- a/system/database/DB_query_builder.php
+++ b/system/database/DB_query_builder.php
@@ -903,11 +903,12 @@ abstract class CI_DB_query_builder extends CI_DB_driver {
}
is_bool($escape) OR $escape = $this->_protect_identifiers;
- $prefix = (count($this->qb_where) === 0 && count($this->qb_cache_where) === 0)
- ? $this->_group_get_type('') : $this->_group_get_type($type);
foreach ($field as $k => $v)
{
+ $prefix = (count($this->qb_where) === 0 && count($this->qb_cache_where) === 0)
+ ? $this->_group_get_type('') : $this->_group_get_type($type);
+
$v = $this->escape_like_str($v);
if ($side === 'none')