diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-01-17 21:25:46 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-01-17 21:25:46 +0100 |
commit | 05b3a5df12ec91f4762786c4b8a70136825b1e41 (patch) | |
tree | d9b31af291db8b656a4b813c232919adeee49ff2 | |
parent | 1d4191447297c4404c59e364c465476b795ba28e (diff) |
orderby fix
-rw-r--r-- | system/database/DB_active_rec.php | 3 |
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;
}
|