From: friendica Date: Fri, 4 May 2012 03:47:04 +0000 (-0700) Subject: yet another bug in remote_friends_in_common X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=15542a8690701b403ed7e7bf56d82d1511cfbd63;p=friendica.git yet another bug in remote_friends_in_common --- diff --git a/include/contact_widgets.php b/include/contact_widgets.php index bf3a869583..4dab6a53e8 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -143,7 +143,7 @@ function common_friends_visitor_widget($profile_uid) { $cid = $zcid = 0; if(can_write_wall($a,$profile_uid)) - $cid = local_user(); + $cid = remote_user(); else { if(get_my_url()) { $r = q("select id from contact where nurl = '%s' and uid = %d limit 1", diff --git a/include/socgraph.php b/include/socgraph.php index a67b3d9e34..b7c4ccc71e 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -176,6 +176,7 @@ function count_common_friends($uid,$cid) { intval($cid) ); +// logger("count_common_friends: $uid $cid {$r[0]['total']}"); if(count($r)) return $r[0]['total']; return 0;