From fa934147df0242c1611a6c4f97263c4fe78ef149 Mon Sep 17 00:00:00 2001 From: Kuzirashi Date: Sun, 20 Apr 2014 15:39:10 +0200 Subject: [PATCH] Marketplaces improvements. Replaced @ operator(as Znote suggested) using assign-by-repherence. Fixed `invalid argument supplied for foreach` errors when `compare` in URL string was type of `String` or did not match any of the items from the list. --- market.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/market.php b/market.php index 07097d9..cd2dd48 100644 --- a/market.php +++ b/market.php @@ -3,7 +3,7 @@ $server = $config['shop']['imageServer']; $imageType = $config['shop']['imageType']; -$compare = getValue(@$_GET['compare']); +$compare = &$_GET['compare']; // If you are not comparing any items, present the list. if (!$compare) { @@ -95,7 +95,7 @@ if (!$compare) { By Offer sold " alt="Item Image">