mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix warning in PHP8.0
This commit is contained in:
parent
ce694e179c
commit
c7f84a178d
4 changed files with 9 additions and 5 deletions
|
|
@ -270,7 +270,7 @@ class Debug
|
||||||
|
|
||||||
// Get the backtrace.
|
// Get the backtrace.
|
||||||
$backtrace = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS);
|
$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);
|
array_shift($backtrace);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -219,7 +219,7 @@
|
||||||
<!--@if($is_logged)-->
|
<!--@if($is_logged)-->
|
||||||
<!-- after_login -->
|
<!-- after_login -->
|
||||||
<a href="{getUrl('act', 'dispMemberInfo')}" class="login_after">
|
<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}" />
|
<img src="{$logged_info->profile_image->src}" alt="{$logged_info->nick_name}" />
|
||||||
<!--@else-->
|
<!--@else-->
|
||||||
<img src="./img/ico_default.jpg" alt="{$logged_info->nick_name}" />
|
<img src="./img/ico_default.jpg" alt="{$logged_info->nick_name}" />
|
||||||
|
|
|
||||||
|
|
@ -465,7 +465,11 @@ class boardView extends board
|
||||||
$args->module_srl = $this->include_modules ?: $this->module_srl;
|
$args->module_srl = $this->include_modules ?: $this->module_srl;
|
||||||
}
|
}
|
||||||
$output = DocumentModel::getNoticeList($args, $this->columnList);
|
$output = DocumentModel::getNoticeList($args, $this->columnList);
|
||||||
$notice_list = $output->data;
|
if(isset($output->data))
|
||||||
|
{
|
||||||
|
$notice_list = $output->data;
|
||||||
|
}
|
||||||
|
|
||||||
$this->_fillModuleTitles($notice_list);
|
$this->_fillModuleTitles($notice_list);
|
||||||
Context::set('notice_list', $notice_list);
|
Context::set('notice_list', $notice_list);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1070,10 +1070,10 @@ class ncenterliteController extends ncenterlite
|
||||||
}
|
}
|
||||||
|
|
||||||
$_latest_notify_id = array_slice($_output->data, 0, 1);
|
$_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);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue