aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-08 17:40:56 -0700
committerfriendica <info@friendica.com>2012-05-08 17:40:56 -0700
commita048fd806aa64aa1a8498effa2ab5a7aafd54bb5 (patch)
treebe8dc6e1c9fe5f2b0ef9be4ad43d9e2305dc27a4 /include
parent10812e0c19b9a8db3620c40656ba8bb480e04da0 (diff)
downloadvolse-hubzilla-a048fd806aa64aa1a8498effa2ab5a7aafd54bb5.tar.gz
volse-hubzilla-a048fd806aa64aa1a8498effa2ab5a7aafd54bb5.tar.bz2
volse-hubzilla-a048fd806aa64aa1a8498effa2ab5a7aafd54bb5.zip
don't provide 'show more' on remote friends in common unless there are actually more
Diffstat (limited to 'include')
-rw-r--r--include/contact_widgets.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/contact_widgets.php b/include/contact_widgets.php
index 42d3afdee..ce1cdbad5 100644
--- a/include/contact_widgets.php
+++ b/include/contact_widgets.php
@@ -183,7 +183,8 @@ function common_friends_visitor_widget($profile_uid) {
'$desc' => sprintf( tt("%d contact in common", "%d contacts in common", $t), $t),
'$base' => $a->get_baseurl(),
'$uid' => $profile_uid,
- '$cid' => $cid,
+ '$cid' => (($cid) ? $cid : '0'),
+ '$linkmore' => (($t > 5) ? 'true' : ''),
'$more' => t('show more'),
'$items' => $r
));