diff --git a/core/classes/Item.php b/core/classes/Item.php index 6294a5a4ac76969e8fb26e4059d0bcf023ad00fb..85054d6e2f8f2d1a21444d33920b2bffab4ec9b8 100644 --- a/core/classes/Item.php +++ b/core/classes/Item.php @@ -10,7 +10,7 @@ class Item{ public function __construct($item){ if(is_array($item)){ - $this->id = $item['type']; + $this->id = strtolower($item['type']); if(isset($item['meta'])){ if(isset($item['meta']['display-name'])){ diff --git a/core/classes/Shop.php b/core/classes/Shop.php index ebbcffd94c3669e7036e2affc4dfbe8951564a6b..67fca8737512476bfac1fccdfa1446e59e364676 100644 --- a/core/classes/Shop.php +++ b/core/classes/Shop.php @@ -34,7 +34,7 @@ public static function getShops($search=null){ $shops = Connexion::pdo()->query("SELECT * FROM qs_external_cache NATURAL JOIN qs_shops")->fetchAll(PDO::FETCH_ASSOC); for($i=0;$i<count($shops);$i++){ $item = yaml_parse($shops[$i]['itemConfig']); - $shops[$i]['item'] = new Item(strtolower($item['item'])); + $shops[$i]['item'] = new Item($item['item']); $owner = json_decode($shops[$i]['owner'], true); $shops[$i]['seller'] = new Seller($owner["owner"]); }