diff --git a/install/sql/mysql.sql b/install/sql/mysql.sql
index d194b8f0c..5527a23ea 100644
--- a/install/sql/mysql.sql
+++ b/install/sql/mysql.sql
@@ -284,7 +284,7 @@ CREATE TABLE IF NOT EXISTS `bb_bt_torrents`
`reg_time` INT(11) NOT NULL DEFAULT '0',
`call_seed_time` INT(11) NOT NULL DEFAULT '0',
`complete_count` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
- `seeder_last_seen` INT(11) NOT NULL DEFAULT '0',
+ `seeder_last_seen` MEDIUMINT(10) NOT NULL DEFAULT '0',
`tor_status` TINYINT(4) NOT NULL DEFAULT '0',
`checked_user_id` MEDIUMINT(8) NOT NULL DEFAULT '0',
`checked_time` INT(11) NOT NULL DEFAULT '0',
@@ -1457,7 +1457,7 @@ CREATE TABLE IF NOT EXISTS `buf_last_seeder`
(
`topic_id` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
`seeder_last_seen` INT(11) NOT NULL DEFAULT '0',
- `user_id` INT(11) NOT NULL DEFAULT '0',
+ `user_id` MEDIUMINT(10) NOT NULL DEFAULT '0',
PRIMARY KEY (`topic_id`)
)
ENGINE = MyISAM
diff --git a/library/attach_mod/displaying_torrent.php b/library/attach_mod/displaying_torrent.php
index 632325906..39251fa04 100644
--- a/library/attach_mod/displaying_torrent.php
+++ b/library/attach_mod/displaying_torrent.php
@@ -501,7 +501,7 @@ if ($tor_reged && $tor_info) {
// Show "seeder last seen info"
if (($s_mode == 'count' && !$seed_count) || (!$seeders && !defined('SEEDER_EXIST'))) {
$last_seen_time = ($tor_info['seeder_last_seen']) ? delta_time($tor_info['seeder_last_seen']) : $lang['NEVER'];
- $last_seeder_username = (!empty($tor_info['last_seeder_id']) && $last_seeder = get_userdata($tor_info['last_seeder_id'])) ? ' -> ' . profile_url(['username' => $last_seeder['username'], 'user_id' => $last_seeder['user_id'], 'user_rank' => $last_seeder['user_rank']]) . '' : '';
+ $last_seeder_username = (!empty($tor_info['last_seeder_id']) && $last_seeder = get_userdata($tor_info['last_seeder_id'])) ? ' -> ' . profile_url(['username' => $last_seeder['username'], 'user_id' => $last_seeder['user_id'], 'user_rank' => $last_seeder['user_rank']]) . '' : ($tor_info['last_seeder_id'] < 0 ? ' -> ' . $lang['GUEST'] : '');
$template->assign_vars(['SEEDER_LAST_SEEN' => sprintf($lang['SEEDER_LAST_SEEN'], $last_seen_time)]);
$template->assign_vars(['SEEDER_USERNAME' => $last_seeder_username]);