From 891d231bbe4ee4499cf9e62013971b85a0542404 Mon Sep 17 00:00:00 2001 From: Habeas Codice Date: Fri, 23 Jan 2015 17:25:05 -0800 Subject: rand() fixes --- mod/sitelist.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod/sitelist.php') 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 "; -- cgit v1.2.3