Fix deprecation warnings in PHP 8.2

This commit is contained in:
Kijin Sung 2023-01-16 22:21:57 +09:00
parent a6872d6e2a
commit b6d78becc9
3 changed files with 6 additions and 7 deletions

View file

@ -520,7 +520,7 @@ class boardView extends board
// set member_srl for view particular member's document
if($this->module_info->use_anonymous !== 'Y')
{
$args->member_srl = abs(Context::get('member_srl'));
$args->member_srl = abs(Context::get('member_srl') ?? 0) ?: null;
}
// if the category is enabled, then get the category