diff options
author | zotlabs <mike@macgirvin.com> | 2016-11-30 01:16:44 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-11-30 11:24:38 -0800 |
commit | 2e5a993f880d619aedf3693927e7b3e164fbfcc0 (patch) | |
tree | 72345fe81ef797ea233cac82e8c3bf0f20e791b9 | |
parent | d284b8e0a082195bb7b2d2156ed65bbfe82fb41e (diff) | |
download | volse-hubzilla-2e5a993f880d619aedf3693927e7b3e164fbfcc0.tar.gz volse-hubzilla-2e5a993f880d619aedf3693927e7b3e164fbfcc0.tar.bz2 volse-hubzilla-2e5a993f880d619aedf3693927e7b3e164fbfcc0.zip |
pubsites: don't list dead sites
-rw-r--r-- | Zotlabs/Module/Dirsearch.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Dirsearch.php b/Zotlabs/Module/Dirsearch.php index ebd6c3715..4b9dcaa54 100644 --- a/Zotlabs/Module/Dirsearch.php +++ b/Zotlabs/Module/Dirsearch.php @@ -410,13 +410,13 @@ class Dirsearch extends \Zotlabs\Web\Controller { $rand = db_getfunc('rand'); $realm = get_directory_realm(); if($realm == DIRECTORY_REALM) { - $r = q("select * from site where site_access != 0 and site_register !=0 and ( site_realm = '%s' or site_realm = '') and site_type = %d order by $rand", + $r = q("select * from site where site_access != 0 and site_register !=0 and ( site_realm = '%s' or site_realm = '') and site_type = %d and site_dead = 0 order by $rand", dbesc($realm), intval(SITE_TYPE_ZOT) ); } else { - $r = q("select * from site where site_access != 0 and site_register !=0 and site_realm = '%s' and site_type = %d order by $rand", + $r = q("select * from site where site_access != 0 and site_register !=0 and site_realm = '%s' and site_type = %d and site_dead = 0 order by $rand", dbesc($realm), intval(SITE_TYPE_ZOT) ); |