From be062e21338727d0c2d91852fe07b2b949830160 Mon Sep 17 00:00:00 2001 From: BJRambo Date: Thu, 15 Jul 2021 17:23:42 +0900 Subject: [PATCH] Fix warning error better then c7f84a178d3115617a2a7d06795b7ca1eeebf745 --- common/framework/debug.php | 2 +- layouts/xedition/layout.html | 2 +- modules/ncenterlite/ncenterlite.controller.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/framework/debug.php b/common/framework/debug.php index fe92ed8aa..73dc53b0d 100644 --- a/common/framework/debug.php +++ b/common/framework/debug.php @@ -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); } diff --git a/layouts/xedition/layout.html b/layouts/xedition/layout.html index e614e0bf8..b066b589a 100644 --- a/layouts/xedition/layout.html +++ b/layouts/xedition/layout.html @@ -219,7 +219,7 @@ - + {$logged_info->nick_name} {$logged_info->nick_name} diff --git a/modules/ncenterlite/ncenterlite.controller.php b/modules/ncenterlite/ncenterlite.controller.php index fc5009b7b..dcb3bd0ce 100644 --- a/modules/ncenterlite/ncenterlite.controller.php +++ b/modules/ncenterlite/ncenterlite.controller.php @@ -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; }