ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 10990


Ignore:
Timestamp:
Mar 11, 2009, 2:53:14 PM (12 years ago)
Author:
nakasone
Message:

#3678:toとfromが逆になっていたのを修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/db/friend.php

    r10769 r10990  
    360360            " FROM c_member,".
    361361                "c_friend".
    362             " WHERE c_member.c_member_id = c_friend.c_member_id_from".
    363                 " AND c_friend.c_member_id_to = ?".
     362            " WHERE c_member.c_member_id = c_friend.c_member_id_to".
     363                " AND c_friend.c_member_id_from = ?".
    364364            " ORDER BY c_friend.r_datetime DESC";
    365365    $params = array(intval($c_member_id));
     
    367367
    368368    foreach ($c_friend_list as $key => $value) {
    369         $c_friend = db_friend_c_friend4c_member_id_from4c_member_id_to($value['c_member_id_to'], $value['c_member_id_from']);
     369        $c_friend = db_friend_c_friend4c_member_id_from4c_member_id_to($value['c_member_id_from'], $value['c_member_id_to']);
    370370        $c_friend_list[$key]['intro'] = $c_friend['intro'];
    371371
    372         $c_friend_list[$key]['friend_count'] = db_friend_count_friends($value['c_member_id_from']);
     372        $c_friend_list[$key]['friend_count'] = db_friend_count_friends($value['c_member_id_to']);
    373373    }
    374374
Note: See TracChangeset for help on using the changeset viewer.