diff options
author | Thomas Willingham <founder@kakste.com> | 2014-01-14 03:50:32 +0000 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2014-01-14 03:50:32 +0000 |
commit | a49704fdb6f6a4059a951edb2029c91809286eec (patch) | |
tree | 92354bc742b1e18b35e86d53a05ddc09b69d1232 | |
parent | d0e657f0f034b10f35bae56f1834d7e41e552486 (diff) | |
download | volse-hubzilla-a49704fdb6f6a4059a951edb2029c91809286eec.tar.gz volse-hubzilla-a49704fdb6f6a4059a951edb2029c91809286eec.tar.bz2 volse-hubzilla-a49704fdb6f6a4059a951edb2029c91809286eec.zip |
Probably shouldn't list REGISTER_CLOSED sites on a list of open hubs.
-rw-r--r-- | mod/dirsearch.php | 4 |
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 +} |