aboutsummaryrefslogtreecommitdiffstats
path: root/mod/sitelist.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/sitelist.php')
-rw-r--r--mod/sitelist.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/sitelist.php b/mod/sitelist.php
index 95cf862df..4e52f0463 100644
--- a/mod/sitelist.php
+++ b/mod/sitelist.php
@@ -9,8 +9,9 @@ function sitelist_init(&$a) {
$sql_order = " order by site_url ";
+ $rand = db_getfunc('rand');
if($order == 'random')
- $sql_order = " order by rand() ";
+ $sql_order = " order by $rand ";
$sql_limit = " limit $start, $limit ";