Probably shouldn't list REGISTER_CLOSED sites on a list of open hubs.

This commit is contained in:
Thomas Willingham 2014-01-14 03:50:32 +00:00
parent d0e657f0f0
commit a49704fdb6

View File

@ -233,7 +233,7 @@ function dirsearch_content(&$a) {
function list_public_sites() { 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); $ret = array('success' => false);
if($r) { if($r) {
@ -269,4 +269,4 @@ function list_public_sites() {
} }
} }
return $ret; return $ret;
} }