From ff43d62e445422a40271855dcd9933499da501fa Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 4 Oct 2012 03:13:57 -0700 Subject: add hash to channel structure for consistency/redundancy --- include/Contact.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/Contact.php') diff --git a/include/Contact.php b/include/Contact.php index 38c3c3203..9a6d6a973 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -25,12 +25,12 @@ function map_perms($channel,$zguid,$zsig) { $is_contact = true; $contact = $r[0]; } - $r = q("select * from channel where channel_global_id = '%s'", + $r = q("select * from channel where channel_guid = '%s'", dbesc($zguid) ); if($r && count($r)) { foreach($r as $rr) { - if(base64url_encode(rsa_sign($rr['channel_global_id'],$rr['channel_prvkey'])) === $zsig) { + if(base64url_encode(rsa_sign($rr['channel_guid'],$rr['channel_prvkey'])) === $zsig) { $is_site = true; break; } -- cgit v1.2.3