fix a fatal error with incorrect DB object access

This commit is contained in:
zottel 2016-11-07 12:19:03 +01:00
parent 66c07a8b33
commit cb32640f70

View File

@ -4174,7 +4174,7 @@ function update_hub_connected($hub,$sitekey = '') {
intval($hub['hubloc_id']), intval($hub['hubloc_id']),
dbesc($sitekey) dbesc($sitekey)
); );
if(intval($r[0]['hubloc_orphancheck'])) { if(intval($hub['hubloc_orphancheck'])) {
q("update hubloc set hubloc_orhpancheck = 0 where hubloc_id = %d and hubloc_sitekey = '%s' ", q("update hubloc set hubloc_orhpancheck = 0 where hubloc_id = %d and hubloc_sitekey = '%s' ",
intval($hub['hubloc_id']), intval($hub['hubloc_id']),
dbesc($sitekey) dbesc($sitekey)
@ -4538,4 +4538,4 @@ function zot_reply_notify($data) {
$ret['success'] = true; $ret['success'] = true;
json_return_and_die($ret); json_return_and_die($ret);
} }