From eb4ecfabb2e1a7496df047a0409ff0a2fb6b52cd Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Fri, 3 Nov 2023 17:22:02 +0700 Subject: [PATCH] Fixed undefined offset of $action_params (#1020) --- src/Ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ajax.php b/src/Ajax.php index 09d84c75a..a051d70ff 100644 --- a/src/Ajax.php +++ b/src/Ajax.php @@ -88,7 +88,7 @@ class Ajax // Exit if board is disabled via ON/OFF trigger or by admin if ($bb_cfg['board_disable'] || file_exists(BB_DISABLED)) { - if ($action_params[1] !== true) { + if (!isset($action_params[1]) || $action_params[1] !== true) { if ($bb_cfg['board_disable']) { $this->ajax_die($lang['BOARD_DISABLE']); } elseif (file_exists(BB_DISABLED)) {