mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +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
|
|
@ -100,7 +100,7 @@ class communicationController extends communication
|
|||
}
|
||||
|
||||
$receiver_member_info = $oMemberModel->getMemberInfoByMemberSrl($receiver_srl);
|
||||
if($receiver_member_info->member_srl != $receiver_srl)
|
||||
if(!$receiver_member_info->member_srl)
|
||||
{
|
||||
throw new Rhymix\Framework\Exception('msg_not_exists_member');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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