From a49704fdb6f6a4059a951edb2029c91809286eec Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Tue, 14 Jan 2014 03:50:32 +0000 Subject: Probably shouldn't list REGISTER_CLOSED sites on a list of open hubs. --- mod/dirsearch.php | 4 ++-- 1 file 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 +} -- cgit v1.2.3