mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
Fix #1886 clean up incorrect use of getMemberInfo* methods
This commit is contained in:
parent
53a8eaa81c
commit
7b46deb973
3 changed files with 31 additions and 26 deletions
|
|
@ -249,7 +249,7 @@ class communicationView extends communication
|
|||
}
|
||||
|
||||
$receiver_info = $oMemberModel->getMemberInfoByMemberSrl($receiver_srl);
|
||||
if(!$receiver_info)
|
||||
if(!$receiver_info || !$receiver_info->member_srl)
|
||||
{
|
||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
}
|
||||
|
|
@ -374,8 +374,7 @@ class communicationView extends communication
|
|||
$oMemberModel = getModel('member');
|
||||
$oCommunicationModel = getModel('communication');
|
||||
$communication_info = $oMemberModel->getMemberInfoByMemberSrl($target_srl);
|
||||
|
||||
if($communication_info->member_srl != $target_srl)
|
||||
if(!$communication_info || !$communication_info->member_srl)
|
||||
{
|
||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue