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

Changeset 9818


Ignore:
Timestamp:
Dec 31, 2008, 9:54:11 PM (12 years ago)
Author:
ebihara
Message:

#3256:fixed MemberRelationship::removeFriendPre() doesn't remove friend_pre

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/model/MemberRelationship.php

    r9508 r9818  
    8787  {
    8888    $this->setIsFriendPre(false);
    89     $result = $this->save();
    90     if (!$result) {
    91       return false;
    92     }
     89    $resultFrom = $this->save();
     90    $this->getToInstance()->setIsFriendPre(false);
     91    $resultTo = $this->getToInstance()->save();
    9392
    94     $this->getToInstance()->setIsFriendPre(false);
    95     return $this->getToInstance()->save();
     93    return $resultFrom && $resultTo;
    9694  }
    9795
Note: See TracChangeset for help on using the changeset viewer.