From a048fd806aa64aa1a8498effa2ab5a7aafd54bb5 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 8 May 2012 17:40:56 -0700 Subject: don't provide 'show more' on remote friends in common unless there are actually more --- include/contact_widgets.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/contact_widgets.php') 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 )); -- cgit v1.2.3