diff options
author | marijus <mario@mariovavti.com> | 2015-01-24 12:23:26 +0100 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2015-01-24 12:23:26 +0100 |
commit | ed09513bb26f0487e44065c90f3e7d7801d0ac68 (patch) | |
tree | b9de4ccd664055d30456add0a62b8a1e59dd8b48 /mod/sitelist.php | |
parent | e4e990df06ef64dd08bdd6e6a78bf461dc97cc19 (diff) | |
parent | 146efbc18e95b7f008b683e436c0f0f2fd7db2a1 (diff) | |
download | volse-hubzilla-ed09513bb26f0487e44065c90f3e7d7801d0ac68.tar.gz volse-hubzilla-ed09513bb26f0487e44065c90f3e7d7801d0ac68.tar.bz2 volse-hubzilla-ed09513bb26f0487e44065c90f3e7d7801d0ac68.zip |
Merge branch 'master' of https://github.com/friendica/red
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 "; |