From 9af489d0da066d372b9a5c3872753f6d423f4f18 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 30 Dec 2023 15:06:05 +0700 Subject: [PATCH] Update posting.php --- posting.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/posting.php b/posting.php index 124816fd..fdbd15a4 100644 --- a/posting.php +++ b/posting.php @@ -278,7 +278,10 @@ if ($mode == 'editpost') { if ($tor_status = DB()->fetch_row("SELECT tor_status FROM " . BB_BT_TORRENTS . " WHERE topic_id = $topic_id AND forum_id = $forum_id AND tor_status IN(" . implode(',', array_keys($bb_cfg['tor_cannot_edit'])) . ") LIMIT 1")) { - bb_die($lang['NOT_EDIT_TOR_STATUS'] . ': ' . $bb_cfg['tor_icons'][$tor_status['tor_status']] . ' ' . $lang['TOR_STATUS_NAME'][$tor_status['tor_status']] . '.'); + if ($bb_cfg['tor_cannot_edit'][$tor_status['tor_status']]) + { + bb_die($lang['NOT_EDIT_TOR_STATUS'] . ': ' . $bb_cfg['tor_icons'][$tor_status['tor_status']] . ' ' . $lang['TOR_STATUS_NAME'][$tor_status['tor_status']] . '.'); + } } } }