mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Fix #1615 remove unnessary $friend_count variable
This commit is contained in:
parent
00519cce5d
commit
1a1af16a3a
1 changed files with 5 additions and 3 deletions
|
|
@ -306,9 +306,7 @@ class communicationView extends communication
|
||||||
$columnList = array('friend_srl', 'friend_group_srl', 'target_srl', 'member.nick_name', 'friend.regdate');
|
$columnList = array('friend_srl', 'friend_group_srl', 'target_srl', 'member.nick_name', 'friend.regdate');
|
||||||
|
|
||||||
$output = $oCommunicationModel->getFriends($friend_group_srl, $columnList);
|
$output = $oCommunicationModel->getFriends($friend_group_srl, $columnList);
|
||||||
$friend_count = count($output->data);
|
if($output->data)
|
||||||
|
|
||||||
if($friend_count)
|
|
||||||
{
|
{
|
||||||
foreach($output->data as $key => $val)
|
foreach($output->data as $key => $val)
|
||||||
{
|
{
|
||||||
|
|
@ -321,6 +319,10 @@ class communicationView extends communication
|
||||||
$output->data[$key]->group_title = $group_title;
|
$output->data[$key]->group_title = $group_title;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$output->data = [];
|
||||||
|
}
|
||||||
|
|
||||||
// set a template file
|
// set a template file
|
||||||
Context::set('total_count', $output->total_count);
|
Context::set('total_count', $output->total_count);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue