mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix #1719 친구 등록이 되지 않던 문제 고침
This commit is contained in:
parent
621e246530
commit
98267d90d5
1 changed files with 13 additions and 4 deletions
|
|
@ -690,12 +690,21 @@ class communicationController extends communication
|
|||
throw new Rhymix\Framework\Exceptions\MustLogin;
|
||||
}
|
||||
|
||||
$logged_info = Context::get('logged_info');
|
||||
$friend_group_srl = trim(Context::get('friend_group_srl'));
|
||||
|
||||
// Variables
|
||||
$args = new stdClass();
|
||||
$args->friend_group_srl = trim(Context::get('friend_group_srl'));
|
||||
$args->member_srl = $logged_info->member_srl;
|
||||
|
||||
if($friend_group_srl)
|
||||
{
|
||||
if(!is_numeric($friend_group_srl))
|
||||
{
|
||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
}
|
||||
$args->friend_group_srl = $friend_group_srl;
|
||||
}
|
||||
|
||||
$args->member_srl = $this->user->member_srl;
|
||||
$args->title = escape(Context::get('title'));
|
||||
|
||||
if(!$args->title)
|
||||
|
|
@ -708,8 +717,8 @@ class communicationController extends communication
|
|||
{
|
||||
$output = executeQuery('communication.renameFriendGroup', $args);
|
||||
$msg_code = 'success_updated';
|
||||
// add if not exists
|
||||
}
|
||||
// add if not exists
|
||||
else
|
||||
{
|
||||
$output = executeQuery('communication.addFriendGroup', $args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue