diff --git a/house.php b/house.php
index 1c36d02..4acc330 100644
--- a/house.php
+++ b/house.php
@@ -16,7 +16,7 @@ if ($house !== false && $config['TFSVersion'] === 'TFS_10') {
// Bid on house logic
$bid_char = getValue($_POST['char']);
$bid_amount = getValue($_POST['amount']);
- if ($bid_amount !== false && $bid_char !== false) {
+ if ($bid_amount !== false && $bid_char !== false && $house['bid_end'] > time()) {
$bid_char = (int)$bid_char;
$bid_amount = (int)$bid_amount;
@@ -84,34 +84,31 @@ if ($house !== false && $config['TFSVersion'] === 'TFS_10') {
echo "
Bid will end on: ". getClock($house['bid_end'], true);
}
- if (user_logged_in()) {
- // Your characters, indexed by char_id
- $yourChars = mysql_select_multi("SELECT `id`, `name`, `balance` FROM `players` WHERE `account_id`='". $user_data['id'] ."';");
- if ($yourChars !== false) {
- $charData = array();
- foreach ($yourChars as $char) {
- $charData[$char['id']] = $char;
- if (get_character_guild_rank($char['id']) > 0) {
- $guild = get_player_guild_data($char['id']);
- $charData[$char['id']]['guild'] = $guild['guild_id'];
- $charData[$char['id']]['guild_rank'] = $guild['rank_level'];
- } else $charData[$char['id']]['guild'] = '0';
- }
- ?>
-