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