mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
Improve #1321
This commit is contained in:
parent
c164f506bb
commit
8ab971f696
2 changed files with 5 additions and 23 deletions
|
|
@ -378,16 +378,13 @@ class communicationModel extends communication
|
||||||
|
|
||||||
$args = new stdClass();
|
$args = new stdClass();
|
||||||
$args->member_srl = $logged_info->member_srl;
|
$args->member_srl = $logged_info->member_srl;
|
||||||
|
|
||||||
$output = executeQueryArray('communication.getFriendGroups', $args);
|
$output = executeQueryArray('communication.getFriendGroups', $args);
|
||||||
|
$friend_group_list = array();
|
||||||
$group_list = $output->data;
|
foreach ($output->data as $item)
|
||||||
if(!$group_list)
|
|
||||||
{
|
{
|
||||||
return;
|
$friend_group_list[$item->friend_group_srl] = $item;
|
||||||
}
|
}
|
||||||
|
return $friend_group_list;
|
||||||
return $group_list;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -294,18 +294,7 @@ class communicationView extends communication
|
||||||
$oCommunicationModel = getModel('communication');
|
$oCommunicationModel = getModel('communication');
|
||||||
|
|
||||||
// get a group list
|
// get a group list
|
||||||
$friend_group_list = array();
|
$friend_group_list = $oCommunicationModel->getFriendGroups();
|
||||||
$tmp_group_list = $oCommunicationModel->getFriendGroups();
|
|
||||||
if (is_countable($tmp_group_list))
|
|
||||||
{
|
|
||||||
$group_count = count($tmp_group_list);
|
|
||||||
|
|
||||||
for($i = 0; $i < $group_count; $i++)
|
|
||||||
{
|
|
||||||
$friend_group_list[$tmp_group_list[$i]->friend_group_srl] = $tmp_group_list[$i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Context::set('friend_group_list', $friend_group_list);
|
Context::set('friend_group_list', $friend_group_list);
|
||||||
|
|
||||||
// get a list of friends
|
// get a list of friends
|
||||||
|
|
@ -385,10 +374,6 @@ class communicationView extends communication
|
||||||
|
|
||||||
// get a group list
|
// get a group list
|
||||||
$friend_group_list = $oCommunicationModel->getFriendGroups();
|
$friend_group_list = $oCommunicationModel->getFriendGroups();
|
||||||
if(!is_countable($friend_group_list))
|
|
||||||
{
|
|
||||||
$friend_group_list = array();
|
|
||||||
}
|
|
||||||
Context::set('friend_group_list', $friend_group_list);
|
Context::set('friend_group_list', $friend_group_list);
|
||||||
|
|
||||||
$this->setTemplateFile('add_friend');
|
$this->setTemplateFile('add_friend');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue