From 4edd0fff52d2d3c688df45772fdec6b80d86c02b Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 3 Jul 2024 13:52:28 +0700 Subject: [PATCH] Update ajax.php --- ajax.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ajax.php b/ajax.php index 48dc59f1..4d5e648a 100644 --- a/ajax.php +++ b/ajax.php @@ -142,14 +142,14 @@ class ajax_common // Exit if board is disabled via ON/OFF trigger or by admin if ($bb_cfg['board_disable'] || file_exists(BB_DISABLED)) { - if ($bb_cfg['board_disable']) - { - if (!DBG_USER) $this->ajax_die($lang['BOARD_DISABLE']); - } - else if (file_exists(BB_DISABLED)) + if (file_exists(BB_DISABLED)) { $this->ajax_die($lang['BOARD_DISABLE_CRON']); } + else if ($bb_cfg['board_disable'] && !DBG_USER) + { + $this->ajax_die($lang['BOARD_DISABLE']); + } // Старый вариант //