diff options
author | Habeas Codice <habeascodice@federated.social> | 2015-01-23 17:25:05 -0800 |
---|---|---|
committer | Habeas Codice <habeascodice@federated.social> | 2015-01-23 17:25:05 -0800 |
commit | 891d231bbe4ee4499cf9e62013971b85a0542404 (patch) | |
tree | ae10b2b15e10ebe63bb3ce24ccff1269f62b2c26 /mod/sitelist.php | |
parent | 660ed058bf719a4545c569712a0b9244f127cc18 (diff) | |
download | volse-hubzilla-891d231bbe4ee4499cf9e62013971b85a0542404.tar.gz volse-hubzilla-891d231bbe4ee4499cf9e62013971b85a0542404.tar.bz2 volse-hubzilla-891d231bbe4ee4499cf9e62013971b85a0542404.zip |
rand() fixes
Diffstat (limited to 'mod/sitelist.php')
-rw-r--r-- | mod/sitelist.php | 3 |
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 "; |