git-svn-id: http://xe-core.googlecode.com/svn/trunk@948 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-04 01:16:31 +00:00
parent e5e8e3deff
commit 516ef7e0f6
8 changed files with 59 additions and 12 deletions

View file

@ -233,10 +233,26 @@
if(!Context::get('is_logged')) return new Object(-1, 'msg_not_logged');
$logged_info = Context::get('logged_info');
// 변수 체크
$friend_srl_list = trim(Context::get('friend_srl_list'));
if(!$friend_srl_list) return new Object(-1, 'msg_cart_is_null');
$friend_srl_list = explode('|@|', $friend_srl_list);
if(!count($friend_srl_list)) return new Object(-1, 'msg_cart_is_null');
$friend_count = count($friend_srl_list);
$target = array();
for($i=0;$i<$friend_count;$i++) {
$friend_srl = (int)trim($friend_srl_list[$i]);
if(!$friend_srl) continue;
$target[] = $friend_srl;
}
if(!count($target)) return new Object(-1,'msg_cart_is_null');
// 변수 정리
$args->friend_srl = Context::get('friend_srl');
$args->friend_srls = implode(',',$target);
$args->member_srl = $logged_info->member_srl;
$args->friend_group_srl = Context::get('friend_group_srl');
$args->friend_group_srl = Context::get('target_friend_group_srl');
$output = executeQuery('member.moveFriend', $args);
if(!$output->toBool()) return $output;