aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dirsearch.php
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2015-01-24 12:23:26 +0100
committermarijus <mario@mariovavti.com>2015-01-24 12:23:26 +0100
commited09513bb26f0487e44065c90f3e7d7801d0ac68 (patch)
treeb9de4ccd664055d30456add0a62b8a1e59dd8b48 /mod/dirsearch.php
parente4e990df06ef64dd08bdd6e6a78bf461dc97cc19 (diff)
parent146efbc18e95b7f008b683e436c0f0f2fd7db2a1 (diff)
downloadvolse-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/dirsearch.php')
-rw-r--r--mod/dirsearch.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/dirsearch.php b/mod/dirsearch.php
index 4a44feb7d..06d530849 100644
--- a/mod/dirsearch.php
+++ b/mod/dirsearch.php
@@ -355,14 +355,15 @@ function dir_parse_query($s) {
function list_public_sites() {
+ $rand = db_getfunc('rand');
$realm = get_directory_realm();
if($realm == DIRECTORY_REALM) {
- $r = q("select * from site where site_access != 0 and site_register !=0 and ( site_realm = '%s' or site_realm = '') order by rand()",
+ $r = q("select * from site where site_access != 0 and site_register !=0 and ( site_realm = '%s' or site_realm = '') order by $rand",
dbesc($realm)
);
}
else {
- $r = q("select * from site where site_access != 0 and site_register !=0 and site_realm = '%s' order by rand()",
+ $r = q("select * from site where site_access != 0 and site_register !=0 and site_realm = '%s' order by $rand",
dbesc($realm)
);
}