diff options
author | friendica <info@friendica.com> | 2013-02-19 00:20:47 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-19 00:20:47 -0800 |
commit | 2d6027150fbb0e7de68476f143784605fc502598 (patch) | |
tree | 166cc2839daec1cdc6bde356c6b96592df4aeb9c /include/text.php | |
parent | 6e6a83194a47a49d4ed9a3daf646e970322aec05 (diff) | |
download | volse-hubzilla-2d6027150fbb0e7de68476f143784605fc502598.tar.gz volse-hubzilla-2d6027150fbb0e7de68476f143784605fc502598.tar.bz2 volse-hubzilla-2d6027150fbb0e7de68476f143784605fc502598.zip |
viewcontacts update
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 4 |
1 files changed, 2 insertions, 2 deletions
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, )); |