Merge pull request #568 from torrentpier/fixed-ajax-error

Fixed HTTP 500 error [AJAX]
This commit is contained in:
Roman Kelesidis 2023-03-07 15:14:38 +07:00 committed by GitHub
commit 79cacad216
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,11 +81,13 @@ class Ajax
} }
// Exit if board is disabled via ON/OFF trigger or by admin // Exit if board is disabled via ON/OFF trigger or by admin
if ($action_params[1] !== true) { if ($bb_cfg['board_disable'] || file_exists(BB_DISABLED)) {
if ($bb_cfg['board_disable']) { if ($action_params[1] !== true) {
$this->ajax_die($lang['BOARD_DISABLE']); if ($bb_cfg['board_disable']) {
} elseif (file_exists(BB_DISABLED)) { $this->ajax_die($lang['BOARD_DISABLE']);
$this->ajax_die($lang['BOARD_DISABLE_CRON']); } elseif (file_exists(BB_DISABLED)) {
$this->ajax_die($lang['BOARD_DISABLE_CRON']);
}
} }
} }