알림이 없을 경우 출력하는 기능 추가.

옵션 제공합니다. 기본값은 사용하지 않도록 되어있습니다.
This commit is contained in:
BJRambo 2018-09-27 19:43:35 +09:00
parent 011918066f
commit 2edb8fd2b5
8 changed files with 30 additions and 3 deletions

View file

@ -795,10 +795,12 @@ class ncenterliteController extends ncenterlite
$logged_info = Context::get('logged_info');
$_output = $oNcenterliteModel->getMyNotifyList($logged_info->member_srl);
// TODO : 메세지 없더라도 표시하도록 하는 옵션 추가
if(!$_output->data)
if($config->always_display !== 'Y')
{
return;
if(!$_output->data)
{
return;
}
}
$_latest_notify_id = array_slice($_output->data, 0, 1);