summaryrefslogtreecommitdiffstats
path: root/system/database/DB_active_rec.php
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2007-08-10 13:26:01 +0200
committerDerek Allard <derek.allard@ellislab.com>2007-08-10 13:26:01 +0200
commit9278249cd356411dc949dd5a6dacc5b07fd4be81 (patch)
tree229b6eda532d4394440c073756acdaf149af2170 /system/database/DB_active_rec.php
parent91948fb49e1c6d28e5c06f4e8f8ec8906aa7bb50 (diff)
Removed "rand()" as a listed option from orderby in the Active Record, as it was MySQL only.
Diffstat (limited to 'system/database/DB_active_rec.php')
-rw-r--r--system/database/DB_active_rec.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index d79a068e3..82d5b63b7 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -405,7 +405,7 @@ class CI_DB_active_record extends CI_DB_driver {
{
if (trim($direction) != '')
{
- $direction = (in_array(strtoupper(trim($direction)), array('ASC', 'DESC', 'RAND()'), TRUE)) ? ' '.$direction : ' ASC';
+ $direction = (in_array(strtoupper(trim($direction)), array('ASC', 'DESC'), TRUE)) ? ' '.$direction : ' ASC';
}
$this->ar_orderby[] = $orderby.$direction;