Fix #1719 친구 등록이 되지 않던 문제 고침

This commit is contained in:
BJRambo 2021-05-30 19:14:24 +09:00
parent 621e246530
commit 98267d90d5

View file

@ -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);