diff --git a/common/framework/debug.php b/common/framework/debug.php index 6b8675aae..fe92ed8aa 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' && !$backtrace[1]['class']) + if (count($backtrace) > 1 && $backtrace[1]['function'] === 'debugPrint' && !isset($backtrace[1]['class'])) { array_shift($backtrace); } diff --git a/layouts/xedition/layout.html b/layouts/xedition/layout.html index aa1d43a42..e614e0bf8 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/board/board.view.php b/modules/board/board.view.php index 2f6d23ead..8f019da42 100644 --- a/modules/board/board.view.php +++ b/modules/board/board.view.php @@ -465,7 +465,11 @@ class boardView extends board $args->module_srl = $this->include_modules ?: $this->module_srl; } $output = DocumentModel::getNoticeList($args, $this->columnList); - $notice_list = $output->data; + if(isset($output->data)) + { + $notice_list = $output->data; + } + $this->_fillModuleTitles($notice_list); Context::set('notice_list', $notice_list); } diff --git a/modules/ncenterlite/ncenterlite.controller.php b/modules/ncenterlite/ncenterlite.controller.php index 3bf1ea788..fc5009b7b 100644 --- a/modules/ncenterlite/ncenterlite.controller.php +++ b/modules/ncenterlite/ncenterlite.controller.php @@ -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; }