summaryrefslogtreecommitdiffstats
path: root/system/drivers
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-21 07:36:15 +0200
committeradmin <devnull@localhost>2006-09-21 07:36:15 +0200
commit885b0343036695ad673fc24ba7682fc155c54036 (patch)
tree648e3d80b6082c905cc291e0bb1d033f57bf06ba /system/drivers
parentcfc1fb38f0d7cd49c735730a603f7ca5a98a664d (diff)
Diffstat (limited to 'system/drivers')
-rw-r--r--system/drivers/DB_active_record.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/drivers/DB_active_record.php b/system/drivers/DB_active_record.php
index c7e4f096c..af12d9d27 100644
--- a/system/drivers/DB_active_record.php
+++ b/system/drivers/DB_active_record.php
@@ -390,7 +390,7 @@ class CI_DB_active_record extends CI_DB_driver {
{
if (trim($direction) != '')
{
- $direction = (in_array(strtoupper(trim($direction)), array('ASC', 'DESC'))) ? ' '.$direction : ' ASC';
+ $direction = (in_array(strtoupper(trim($direction)), array('ASC', 'DESC', 'RAND()'))) ? ' '.$direction : ' ASC';
}
$this->ar_orderby[] = $orderby.$direction;