summaryrefslogtreecommitdiffstats
path: root/system/database/DB_active_rec.php
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-01-17 21:25:46 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-01-17 21:25:46 +0100
commit05b3a5df12ec91f4762786c4b8a70136825b1e41 (patch)
treed9b31af291db8b656a4b813c232919adeee49ff2 /system/database/DB_active_rec.php
parent1d4191447297c4404c59e364c465476b795ba28e (diff)
orderby fix
Diffstat (limited to 'system/database/DB_active_rec.php')
-rw-r--r--system/database/DB_active_rec.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index 3cc65aff4..c899b7f4f 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -749,7 +749,8 @@ class CI_DB_active_record extends CI_DB_driver {
$direction = (in_array(strtoupper(trim($direction)), array('ASC', 'DESC'), TRUE)) ? ' '.$direction : ' ASC';
}
- $this->ar_orderby[] = $this->_protect_identifiers($orderby).$direction;
+ $this->ar_orderby[] = $this->_protect_identifiers($orderby, TRUE).$direction;
+
return $this;
}