aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Dirsearch.php
diff options
context:
space:
mode:
authorAndrew Manning <andrew@reticu.li>2016-11-30 21:22:51 -0500
committerAndrew Manning <andrew@reticu.li>2016-11-30 21:22:51 -0500
commit3f838e1dbccab819ce0cf93b079afea8d41d2a7a (patch)
treef76eb1fbb01cb3917474613c0f0bcfbe74ba0aa3 /Zotlabs/Module/Dirsearch.php
parent50a8ba8c18b081ce60ba7ab1a74ba30d8ff43794 (diff)
parentc845eed114ec3cea90acd35c419110d9ab76051f (diff)
downloadvolse-hubzilla-3f838e1dbccab819ce0cf93b079afea8d41d2a7a.tar.gz
volse-hubzilla-3f838e1dbccab819ce0cf93b079afea8d41d2a7a.tar.bz2
volse-hubzilla-3f838e1dbccab819ce0cf93b079afea8d41d2a7a.zip
Merge remote-tracking branch 'upstream/dev' into doco
Diffstat (limited to 'Zotlabs/Module/Dirsearch.php')
-rw-r--r--Zotlabs/Module/Dirsearch.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Dirsearch.php b/Zotlabs/Module/Dirsearch.php
index 9b2057203..e6cf5449a 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)
);