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

Changeset 10295


Ignore:
Timestamp:
Jan 21, 2009, 4:00:31 PM (11 years ago)
Author:
ogawa
Message:

#3369:fixed community list retrieving by viewer's member_id in member/profile action

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_frontend/modules/member/actions/actions.class.php

    r10270 r10295  
    7878  public function executeProfile($request)
    7979  {
    80     if ($request->hasParameter('id') && $request->getParameter('id') != $this->getUser()->getMemberId())
     80    $id = $request->getParameter('id', $this->getUser()->getMemberId());
     81    if ($id != $this->getUser()->getMemberId())
    8182    {
    8283      sfConfig::set('sf_nav_type', 'friend');
     
    8485
    8586    $result = parent::executeProfile($request);
    86     $this->communities = CommunityPeer::retrievesByMemberId($this->getUser()->getMemberId(), 9);
     87
     88    $this->communities = CommunityPeer::retrievesByMemberId($id, 9);
     89
    8790    return $result;
    8891  }
Note: See TracChangeset for help on using the changeset viewer.