Fixed undefined offset of $action_params (#1020)

This commit is contained in:
Roman Kelesidis 2023-11-03 17:22:02 +07:00 committed by GitHub
commit eb4ecfabb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)) {