From b6b2420ff77fb1c19306dfc8be2b916e5a34c375 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 3 Nov 2015 23:54:53 -0800 Subject: protocol upgrade --- include/zot.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/zot.php b/include/zot.php index a23742fac..75ce40ffc 100644 --- a/include/zot.php +++ b/include/zot.php @@ -570,11 +570,12 @@ function zot_gethub($arr,$multiple = false) { } $limit = (($multiple) ? '' : ' limit 1 '); + $sitekey = ((array_key_exists('sitekey',$arr) && $arr['sitekey']) ? " and hubloc_sitekey = '" . protect_sprintf($arr['sitekey']) . "' " : ''); $r = q("select * from hubloc where hubloc_guid = '%s' and hubloc_guid_sig = '%s' and hubloc_url = '%s' and hubloc_url_sig = '%s' - $limit", + $sitekey $limit", dbesc($arr['guid']), dbesc($arr['guid_sig']), dbesc($arr['url']), -- cgit v1.2.3