This commit is contained in:
lopar 2018-03-31 17:05:45 +03:00
parent b0c3919ab1
commit a46ba5a345

View File

@ -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);