From 2d6027150fbb0e7de68476f143784605fc502598 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 19 Feb 2013 00:20:47 -0800 Subject: viewcontacts update --- include/text.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/text.php b/include/text.php index d0b2733c0..3b5b6824a 100644 --- a/include/text.php +++ b/include/text.php @@ -598,7 +598,7 @@ function contact_block() { if((! is_array($a->profile)) || ($a->profile['hide_friends'])) return $o; - $r = q("SELECT COUNT(*) AS total FROM abook WHERE abook_channel = %d and abook_flags = 0", + $r = q("SELECT COUNT(abook_id) AS total FROM abook WHERE abook_channel = %d and abook_flags = 0", intval($a->profile['uid']) ); if(count($r)) { @@ -627,7 +627,7 @@ function contact_block() { $tpl = get_markup_template('contact_block.tpl'); $o = replace_macros($tpl, array( '$contacts' => $contacts, - '$nickname' => $a->profile['nickname'], + '$nickname' => $a->profile['channel_address'], '$viewcontacts' => t('View Connections'), '$micropro' => $micropro, )); -- cgit v1.2.3