From 5fa7ccb16550794d53d7f96bc424dab0a86d2037 Mon Sep 17 00:00:00 2001 From: Stefan Brannfjell Date: Tue, 18 Mar 2014 21:51:38 +0100 Subject: [PATCH] Fixed a small bug where it would show duplicated purchase history. --- market.php | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/market.php b/market.php index bbfe465..b876008 100644 --- a/market.php +++ b/market.php @@ -27,7 +27,7 @@ if (!$compare) { Item Count - Price + Price for 1 Added By Compare @@ -52,7 +52,7 @@ if (!$compare) { Item Count - Price + Price for 1 Added By Compare @@ -79,7 +79,7 @@ if (!$compare) { // First list active bids $offers = mysql_select_multi("SELECT `id`, `sale`, `itemtype` AS `item_id`, `amount`, `price`, `created`, `anonymous`, (SELECT `name` FROM `players` WHERE `id` = `player_id`) AS `player_name` FROM `market_offers` WHERE `itemtype`='$compare' ORDER BY `price` ASC;"); - $historyOffers = mysql_select_multi("SELECT `id`, `itemtype` AS `item_id`, `amount`, `price`, `inserted`, `expires_at`, (SELECT `name` FROM `players` WHERE `id` = `player_id`) AS `player_name` FROM `market_history` WHERE `itemtype`='$compare' AND `state` IN (3, 255) ORDER BY `price` ASC;"); + $historyOffers = mysql_select_multi("SELECT `id`, `itemtype` AS `item_id`, `amount`, `price`, `inserted`, `expires_at` FROM `market_history` WHERE `itemtype`='$compare' AND `state`=255 ORDER BY `price` ASC;"); $buylist = false; // Markup ?> @@ -90,7 +90,7 @@ if (!$compare) { Item Count - Price + Price for 1 Added By @@ -123,7 +123,7 @@ if (!$compare) { Item Count - Price + Price for 1 Added By @@ -149,10 +149,8 @@ if (!$compare) { Item Count - Price - Offer added - Offer expired - By + Price for 1 + Offer sold - - ".$o['player_name'].""; ?>