diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-11-03 23:54:53 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-11-03 23:54:53 -0800 |
commit | b6b2420ff77fb1c19306dfc8be2b916e5a34c375 (patch) | |
tree | ea1db46ffe225e79fda026bff9e43bbf84c67dec /include | |
parent | 5dade2b608affa50e830bf0b93888c2b0570a2bb (diff) | |
download | volse-hubzilla-b6b2420ff77fb1c19306dfc8be2b916e5a34c375.tar.gz volse-hubzilla-b6b2420ff77fb1c19306dfc8be2b916e5a34c375.tar.bz2 volse-hubzilla-b6b2420ff77fb1c19306dfc8be2b916e5a34c375.zip |
protocol upgrade
Diffstat (limited to 'include')
-rw-r--r-- | include/zot.php | 3 |
1 files changed, 2 insertions, 1 deletions
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']), |