]> git.mxchange.org Git - friendica.git/commitdiff
yet another bug in remote_friends_in_common
authorfriendica <info@friendica.com>
Fri, 4 May 2012 03:47:04 +0000 (20:47 -0700)
committerfriendica <info@friendica.com>
Fri, 4 May 2012 03:47:04 +0000 (20:47 -0700)
include/contact_widgets.php
include/socgraph.php

index bf3a8695836b38a9e59f7caa2167c78e927403df..4dab6a53e81623de4cedb6c850683322718b69f1 100644 (file)
@@ -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",
index a67b3d9e34f7868148feefc9bab17696d043580f..b7c4ccc71e7680b1d94ff91e172960cf4926311d 100644 (file)
@@ -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;