mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Disallow duplicate friend registration
This commit is contained in:
parent
45b2910cee
commit
359cf29dce
1 changed files with 10 additions and 0 deletions
|
|
@ -463,6 +463,16 @@ class communicationController extends communication
|
|||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
// Check duplicate friend
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $logged_info->member_srl;
|
||||
$args->target_srl = $target_srl;
|
||||
$output = executeQuery('communication.isAddedFriend', $args);
|
||||
if($output->data->count)
|
||||
{
|
||||
return new Object(-1, 'msg_already_friend');
|
||||
}
|
||||
|
||||
// Variable
|
||||
$args = new stdClass();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue