Fix warning error better then c7f84a178d

This commit is contained in:
BJRambo 2021-07-15 17:23:42 +09:00
parent 0f66507030
commit be062e2133
3 changed files with 3 additions and 3 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' && !isset($backtrace[1]['class']))
if (count($backtrace) > 1 && $backtrace[1]['function'] === 'debugPrint' && empty($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(isset($logged_info->profile_image->src))-->
<!--@if(!empty($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

@ -1073,7 +1073,7 @@ class ncenterliteController extends ncenterlite
$_latest_notify_id = count($_latest_notify_id) > 0 ? $_latest_notify_id[0]->notify : "";
Context::set('ncenterlite_latest_notify_id', $_latest_notify_id);
if(isset($_COOKIE['_ncenterlite_hide_id']) && $_COOKIE['_ncenterlite_hide_id'] == $_latest_notify_id)
if(!empty($_COOKIE['_ncenterlite_hide_id']) && $_COOKIE['_ncenterlite_hide_id'] == $_latest_notify_id)
{
return;
}