Fix #916 show error earlier if attempting to add self as friend

This commit is contained in:
Kijin Sung 2017-09-28 11:34:15 +09:00
parent cc0f2c5a62
commit 7b1f0b4ee2
4 changed files with 11 additions and 1 deletions

View file

@ -347,6 +347,10 @@ class communicationView extends communication
{
return $this->stop('msg_invalid_request');
}
if($target_srl == $logged_info->member_srl)
{
return $this->stop('msg_no_self_friend');
}
// get information of the member
$oMemberModel = getModel('member');