Fix warning in PHP8.0

This commit is contained in:
BJRambo 2021-07-15 03:26:49 +09:00
parent ce694e179c
commit c7f84a178d
4 changed files with 9 additions and 5 deletions

View file

@ -270,7 +270,7 @@ class Debug
// Get the backtrace.
$backtrace = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS);
if (count($backtrace) > 1 && $backtrace[1]['function'] === 'debugPrint' && !$backtrace[1]['class'])
if (count($backtrace) > 1 && $backtrace[1]['function'] === 'debugPrint' && !isset($backtrace[1]['class']))
{
array_shift($backtrace);
}

View file

@ -219,7 +219,7 @@
<!--@if($is_logged)-->
<!-- after_login -->
<a href="{getUrl('act', 'dispMemberInfo')}" class="login_after">
<!--@if($logged_info->profile_image->src)-->
<!--@if(isset($logged_info->profile_image->src))-->
<img src="{$logged_info->profile_image->src}" alt="{$logged_info->nick_name}" />
<!--@else-->
<img src="./img/ico_default.jpg" alt="{$logged_info->nick_name}" />

View file

@ -465,7 +465,11 @@ class boardView extends board
$args->module_srl = $this->include_modules ?: $this->module_srl;
}
$output = DocumentModel::getNoticeList($args, $this->columnList);
if(isset($output->data))
{
$notice_list = $output->data;
}
$this->_fillModuleTitles($notice_list);
Context::set('notice_list', $notice_list);
}

View file

@ -1070,10 +1070,10 @@ class ncenterliteController extends ncenterlite
}
$_latest_notify_id = array_slice($_output->data, 0, 1);
$_latest_notify_id = $_latest_notify_id[0]->notify;
$_latest_notify_id = count($_latest_notify_id) > 0 ? $_latest_notify_id[0]->notify : "";
Context::set('ncenterlite_latest_notify_id', $_latest_notify_id);
if($_COOKIE['_ncenterlite_hide_id'] && $_COOKIE['_ncenterlite_hide_id'] == $_latest_notify_id)
if(isset($_COOKIE['_ncenterlite_hide_id']) && $_COOKIE['_ncenterlite_hide_id'] == $_latest_notify_id)
{
return;
}