mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
d9408da729 커밋 보안 PHP8.0 에러 고침
This commit is contained in:
parent
d9408da729
commit
2257341dc7
1 changed files with 6 additions and 6 deletions
|
|
@ -509,7 +509,7 @@ class ncenterliteController extends ncenterlite
|
|||
{
|
||||
$obj->admin_list = $admin_list;
|
||||
}
|
||||
$notify_member_srls = $this->insertMentionByTargets($mention_targets, $obj, $module_info, $is_anonymous, $this->_TYPE_COMMENT) ?: [];
|
||||
$notify_member_srls = $this->insertMentionByTargets($mention_targets, $obj, $module_info, $is_anonymous, $this->_TYPE_COMMENT);
|
||||
}
|
||||
|
||||
if(!isset($config->use['comment']))
|
||||
|
|
@ -1697,21 +1697,20 @@ class ncenterliteController extends ncenterlite
|
|||
* @param $module_info
|
||||
* @param $is_anonymous
|
||||
* @param string $type
|
||||
* @return Object|Bool|array
|
||||
* @return array
|
||||
*/
|
||||
function insertMentionByTargets($mention_targets, $obj, $module_info, $is_anonymous, $type = 'D')
|
||||
{
|
||||
$oNcenterliteModel = getModel('ncenterlite');
|
||||
$config = NcenterliteModel::getConfig();
|
||||
|
||||
if(!is_array($mention_targets))
|
||||
{
|
||||
return false;
|
||||
return array();
|
||||
}
|
||||
|
||||
if(!$module_info)
|
||||
{
|
||||
return false;
|
||||
return array();
|
||||
}
|
||||
|
||||
$notify_member_srls = array();
|
||||
|
|
@ -1763,7 +1762,8 @@ class ncenterliteController extends ncenterlite
|
|||
$output = $this->_insertNotify($args, $is_anonymous);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
return $output;
|
||||
// 실패시 지금까지 성공한 데이터를 리턴
|
||||
return $notify_member_srls;
|
||||
}
|
||||
$notify_member_srls[] = $mention_member_srl;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue