diff options
author | admin <devnull@localhost> | 2006-09-21 07:36:15 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-21 07:36:15 +0200 |
commit | 885b0343036695ad673fc24ba7682fc155c54036 (patch) | |
tree | 648e3d80b6082c905cc291e0bb1d033f57bf06ba /system/drivers/DB_active_record.php | |
parent | cfc1fb38f0d7cd49c735730a603f7ca5a98a664d (diff) |
Diffstat (limited to 'system/drivers/DB_active_record.php')
-rw-r--r-- | system/drivers/DB_active_record.php | 2 |
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; |