summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-10-12 13:46:14 +0200
committerAndrey Andreev <narf@bofh.bg>2012-10-12 13:46:14 +0200
commitfc043b3d00a94c473a03cd6927e83e3518e391c0 (patch)
tree139625ec0387b73ff77e39cfdff4ed648fbc445e /system/database
parentcc02db959db576f256eb62887d326493e44d45af (diff)
Fix order_by()
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_query_builder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php
index 54fb50f6a..936d114bd 100644
--- a/system/database/DB_query_builder.php
+++ b/system/database/DB_query_builder.php
@@ -2148,7 +2148,7 @@ abstract class CI_DB_query_builder extends CI_DB_driver {
{
if ($this->qb_orderby[$i]['escape'] !== FALSE)
{
- $this->qb_orderby[$i]['field'] = $this->protect_identifiers($field);
+ $this->qb_orderby[$i]['field'] = $this->protect_identifiers($this->qb_orderby[$i]['field']);
}
$this->qb_orderby[$i] = $this->qb_orderby[$i]['field'].$this->qb_orderby[$i]['direction'];