hubloc filtering to eliminate dead and deleted entries

This commit is contained in:
redmatrix 2015-11-01 16:19:28 -08:00
parent d3183467e0
commit 14e92f53f1

View File

@ -654,7 +654,8 @@ function connedit_content(&$a) {
$locstr = '';
$locs = q("select hubloc_addr as location from hubloc where hubloc_hash = '%s' and hubloc_network = 'zot'",
$locs = q("select hubloc_addr as location from hubloc left join site on hubloc_url = site_url where hubloc_hash = '%s'
and hubloc_network = 'zot' and hubloc_deleted = 0 and site_dead = 0",
dbesc($contact['xchan_hash'])
);