From e825ed84e8267386c1090520133d29d7a8823329 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Tue, 18 Aug 2015 14:43:07 +0200 Subject: [PATCH] Items * fixed displaying zero value stats as socketbonus --- includes/types/item.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/types/item.class.php b/includes/types/item.class.php index 4c267b5e..f45668c6 100644 --- a/includes/types/item.class.php +++ b/includes/types/item.class.php @@ -1206,6 +1206,7 @@ class ItemList extends BaseType if ($enchantments) { $eStats = DB::Aowow()->select('SELECT *, typeId AS ARRAY_KEY FROM ?_item_stats WHERE `type` = ?d AND typeId IN (?a)', TYPE_ENCHANTMENT, array_keys($enchantments)); + Util::checkNumeric($eStats); // and merge enchantments back foreach ($enchantments as $eId => $items) @@ -1227,8 +1228,6 @@ class ItemList extends BaseType foreach ($json as $k => $v) if (!$v && !in_array($k, ['classs', 'subclass', 'quality', 'side'])) unset($this->json[$item][$k]); - - Util::checkNumeric($this->json); } public function getOnUseStats()