viewcontacts update

This commit is contained in:
friendica
2013-02-19 00:20:47 -08:00
parent 6e6a83194a
commit 2d6027150f
6 changed files with 29 additions and 32 deletions

View File

@@ -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,
));