From 7f3f981d96338093ed8a01597e80916c6d8ea212 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 11 Feb 2014 20:45:17 -0800 Subject: fix a mysql error which popped up in the dbfail log --- mod/thing.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/thing.php') diff --git a/mod/thing.php b/mod/thing.php index 9b362cecd..2620d660e 100644 --- a/mod/thing.php +++ b/mod/thing.php @@ -199,14 +199,14 @@ function thing_init(&$a) { if(! $profile['is_default']) { $arr['item_private'] = true; $str = ''; - $r = q("select abook_hash from abook where abook_channel = %d and abook_profile = '%s'", + $r = q("select abook_xchan from abook where abook_channel = %d and abook_profile = '%s'", intval(local_user()), dbesc($profile_guid) ); if($r) { $arr['allow_cid'] = ''; foreach($r as $rr) - $arr['allow_cid'] .= '<' . $rr['abook_hash'] . '>'; + $arr['allow_cid'] .= '<' . $rr['abook_xchan'] . '>'; } else $arr['allow_cid'] = '<' . get_observer_hash() . '>'; -- cgit v1.2.3