]> git.mxchange.org Git - friendica.git/blobdiff - include/contact_widgets.php
don't provide 'show more' on remote friends in common unless there are actually more
[friendica.git] / include / contact_widgets.php
index 42d3afdee7cd375e6f9e546a0349595d9533dd13..ce1cdbad55e003b647a0ca75c83e2b8e11a337ef 100644 (file)
@@ -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
        ));