mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix #916 show error earlier if attempting to add self as friend
This commit is contained in:
parent
cc0f2c5a62
commit
7b1f0b4ee2
4 changed files with 11 additions and 1 deletions
|
|
@ -456,10 +456,14 @@ class communicationController extends communication
|
|||
$logged_info = Context::get('logged_info');
|
||||
|
||||
$target_srl = (int) trim(Context::get('target_srl'));
|
||||
if(!$target_srl || $target_srl == $logged_info->member_srl)
|
||||
if(!$target_srl)
|
||||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
if($target_srl == $logged_info->member_srl)
|
||||
{
|
||||
return new Object(-1, 'msg_no_self_friend');
|
||||
}
|
||||
|
||||
// Check duplicate friend
|
||||
$args = new stdClass();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue