From 6bbacdfa3e6a4740a9e45be1ad420bd87f7b24fe Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 30 Dec 2023 00:37:29 +0700 Subject: [PATCH] Minor improvements (#1286) --- posting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posting.php b/posting.php index 34234fd79..feced59fb 100644 --- a/posting.php +++ b/posting.php @@ -328,7 +328,7 @@ if (($delete || $mode == 'delete') && !$confirm) { $poster_rg_id = (isset($_POST['poster_rg']) && $_POST['poster_rg'] != -1) ? (int)$_POST['poster_rg'] : 0; // Disable edit release if tor_status in $bb_cfg['tor_cannot_edit'] - if ($post_info['allow_reg_tracker'] && $post_data['first_post'] && !empty($bb_cfg['tor_cannot_edit']) /*&& !IS_AM*/) { + if (!empty($bb_cfg['tor_cannot_edit']) && $post_info['allow_reg_tracker'] && $post_data['first_post'] && !IS_AM) { 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('Вы не можете редактировать релиз, если он имеет статус: ' . '' . $bb_cfg['tor_icons'][$tor_status['tor_status']] . ' ' . $lang['TOR_STATUS_NAME'][$tor_status['tor_status']] . '.'); }