diff --git a/admin/test.php b/admin/test.php index 898da7b..c61b699 100644 --- a/admin/test.php +++ b/admin/test.php @@ -24,7 +24,7 @@ spl_autoload_register(function ($class_name) { $items = []; $res = db::c()->query('SELECT name,img,type,id FROM inventory WHERE owner = 11263 AND dressed = 1'); foreach ($res->fetch_assoc() as $value) { - $items[$value['name']] = $value; + $items[$value[0]] = $value; } print_r($items);