yet another bug in remote_friends_in_common

This commit is contained in:
friendica 2012-05-03 20:47:04 -07:00
부모 f2d3039aed
커밋 15542a8690
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@ -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",

파일 보기

@ -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;