From 27d7ce44eb15eec8ce92d53599e842af535879d4 Mon Sep 17 00:00:00 2001 From: "Stefan A. Brannfjell" Date: Sat, 28 Sep 2019 09:32:01 +0200 Subject: [PATCH] house.php: Rebase house declaration with #359 Somehow managed to overwrite it with an old copy. --- house.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/house.php b/house.php index ee70c9c..2d00b89 100644 --- a/house.php +++ b/house.php @@ -3,7 +3,7 @@ if ($config['log_ip']) { znote_visitor_insert_detailed_data(3); } -$house = getValue($_GET['id']); +$house = (isset($_GET['id']) && (int)$_GET['id'] > 0) ? (int)$_GET['id'] : false; if ($house !== false && $config['ServerEngine'] === 'TFS_10') { $house_SQL = "SELECT `id`, `owner`, `paid`, `name`, `rent`, `town_id`, `size`, `beds`, `bid`, `bid_end`, `last_bid`, `highest_bidder` FROM `houses` WHERE `id`='$house';"; @@ -260,4 +260,4 @@ if ($house !== false && $config['ServerEngine'] === 'TFS_10') {

Go back to the house list and select a house for further details.

\ No newline at end of file +include 'layout/overall/footer.php'; ?>