Fix undefined values in various modules

This commit is contained in:
Kijin Sung 2025-06-01 17:58:00 +09:00
parent 28de1335a7
commit 702eebaa92
6 changed files with 28 additions and 13 deletions

View file

@ -38,7 +38,11 @@ class SpamfilterController extends Spamfilter
*/
function triggerInsertDocument(&$obj)
{
if($_SESSION['avoid_log']) return;
if (!empty($_SESSION['avoid_log']))
{
return;
}
// Check the login status, login information, and permission
$is_logged = Context::get('is_logged');
$logged_info = Context::get('logged_info');
@ -98,7 +102,11 @@ class SpamfilterController extends Spamfilter
*/
function triggerInsertComment(&$obj)
{
if($_SESSION['avoid_log']) return;
if (!empty($_SESSION['avoid_log']))
{
return;
}
// Check the login status, login information, and permission
$is_logged = Context::get('is_logged');
$logged_info = Context::get('logged_info');