From 2752cd4a4f18abb705566d5ded0606ab920c03c2 Mon Sep 17 00:00:00 2001 From: Salvoxia Date: Thu, 24 Jul 2014 22:17:46 +0200 Subject: [PATCH] Fix: Items in "None" bay were doubled on display Fixed a bug causing all items in the "None" bay (inventory flag 0) to be displayed with their quantity doubled, causing on-the-fly calculations to be off by a factor of 2. This was a DISPLAY BUG only, the database is NOT affacted. --- common/includes/class.itemlist.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/includes/class.itemlist.php b/common/includes/class.itemlist.php index 5771cff86..daebfa493 100644 --- a/common/includes/class.itemlist.php +++ b/common/includes/class.itemlist.php @@ -111,15 +111,13 @@ function execute() ."and itd_kll_id in (" .implode(',', $this->destroyedIDarray).") " ."left join kb3_item_locations itl " - ."on (itd.itd_itl_id = itl.itl_flagID " - ."or (itd.itd_itl_id = 0 and itl.itl_flagID = 1))"; + ."on (itd.itd_itl_id = itl.itl_flagID )"; } else if (count($this->droppedIDarray)) { $sql .= "join kb3_items_dropped itd " ."on inv.typeID = itd_itm_id and itd_kll_id in (" .implode(',', $this->droppedIDarray).") " ."left join kb3_item_locations itl " - ."on (itd.itd_itl_id = itl.itl_flagID " - ."or (itd.itd_itl_id = 0 and itl.itl_flagID = 1)) "; + ."on (itd.itd_itl_id = itl.itl_flagID ) "; } else { $sql .= "where inv.typeID in (".implode(',', $this->itemarray).") "; }