This commit is contained in:
lopar 2020-07-05 01:57:56 +03:00
parent 36786486de
commit e4c7816d46

View File

@ -67,7 +67,7 @@ EMPTY_SLOT;
$dressed_items = db::c()->query('SELECT * FROM inventory WHERE owner_id = ?i AND dressed_slot > 0', $this->id);
$dressed_items_row = $dressed_items->fetch_assoc();
for ($i = 1; $i <= 11; $i++) {
$dressed_item[$dressed_items_row['dressed_slot']] = $dressed_items_row ?? 0;
$dressed_item[$i] = $dressed_items_row ?? null;
}
// while ($row = $dressed_items->fetch_assoc()) {
// $dressed_item[$row['dressed_slot']] = $row;