From 05b3a5df12ec91f4762786c4b8a70136825b1e41 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Thu, 17 Jan 2008 20:25:46 +0000 Subject: orderby fix --- system/database/DB_active_rec.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3-24-g4f1b