Probably shouldn't list REGISTER_CLOSED sites on a list of open hubs.
This commit is contained in:
parent
d0e657f0f0
commit
a49704fdb6
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user