Minor improvements (#773)

This commit is contained in:
Roman Kelesidis 2023-06-05 15:59:01 +07:00 committed by GitHub
commit 2b5c1d5734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View file

@ -22,7 +22,7 @@ switch ($mode) {
// Валидность статуса
if (!isset($lang['TOR_STATUS_NAME'][$status])) {
$this->ajax_die($lang['STATUS_DOES_EXIST'] . $new_status);
$this->ajax_die($lang['TOR_STATUS_FAILED']);
}
$topic_ids = DB()->fetch_rowset("SELECT attach_id FROM " . BB_BT_TORRENTS . " WHERE topic_id IN($topics)", 'attach_id');
@ -94,17 +94,19 @@ switch ($mode) {
$link_reg_ip = $link_last_ip = '';
if (!empty($reg_ip)) {
$link_reg_ip .= $lang['OTHER_IP'] . ' ';
$link_reg_ip .= $lang['OTHER_IP'] . '&nbsp';
foreach ($reg_ip as $row) {
$link_reg_ip .= profile_url($row) . ' ';
$link_reg_ip .= profile_url($row) . ', ';
}
$link_reg_ip = rtrim($link_reg_ip, ', ');
}
if (!empty($last_ip)) {
$link_last_ip .= $lang['OTHER_IP'] . ' ';
$link_last_ip .= $lang['OTHER_IP'] . '&nbsp';
foreach ($last_ip as $row) {
$link_last_ip .= profile_url($row) . ' ';
$link_last_ip .= profile_url($row) . ', ';
}
$link_last_ip = rtrim($link_last_ip, ', ');
}
if ($profiledata['user_level'] == ADMIN && !IS_ADMIN) {