diff --git a/modules/communication/communication.view.php b/modules/communication/communication.view.php index d4f348659..ffda40e83 100644 --- a/modules/communication/communication.view.php +++ b/modules/communication/communication.view.php @@ -306,9 +306,7 @@ class communicationView extends communication $columnList = array('friend_srl', 'friend_group_srl', 'target_srl', 'member.nick_name', 'friend.regdate'); $output = $oCommunicationModel->getFriends($friend_group_srl, $columnList); - $friend_count = count($output->data); - - if($friend_count) + if($output->data) { foreach($output->data as $key => $val) { @@ -321,6 +319,10 @@ class communicationView extends communication $output->data[$key]->group_title = $group_title; } } + else + { + $output->data = []; + } // set a template file Context::set('total_count', $output->total_count);