aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-15 15:42:07 -0800
committerfriendica <info@friendica.com>2014-01-15 15:42:07 -0800
commitf27d59a094cf755bd78123c703161f32d4b163db (patch)
treec4b261f1cbbf85d4153ecee64fe285cc5aa38ec9 /mod
parent762a5432494711bf481943a0dee72cf65f7a04bb (diff)
parent9f66e5aef325666a0fa6e3f035eaa2c3b35b5b00 (diff)
downloadvolse-hubzilla-f27d59a094cf755bd78123c703161f32d4b163db.tar.gz
volse-hubzilla-f27d59a094cf755bd78123c703161f32d4b163db.tar.bz2
volse-hubzilla-f27d59a094cf755bd78123c703161f32d4b163db.zip
Merge pull request #272 from beardy-unixer/master
Probably shouldn't list REGISTER_CLOSED sites on a list of open hubs.
Diffstat (limited to 'mod')
-rw-r--r--mod/dirsearch.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/dirsearch.php b/mod/dirsearch.php
index 7d41ca1b7..59a1d448d 100644
--- a/mod/dirsearch.php
+++ b/mod/dirsearch.php
@@ -233,7 +233,7 @@ function dirsearch_content(&$a) {
function list_public_sites() {
- $r = q("select * from site where site_access != 0 order by rand()");
+ $r = q("select * from site where site_access != 0 and site_register !=0 order by rand()");
$ret = array('success' => false);
if($r) {
@@ -269,4 +269,4 @@ function list_public_sites() {
}
}
return $ret;
-} \ No newline at end of file
+}