This commit is contained in:
lopar 2020-07-05 01:55:46 +03:00
parent 27e880df75
commit 36786486de

View File

@ -66,7 +66,7 @@ EMPTY_SLOT;
$dressed_item = [];
$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 ($dressed_items_row['dressed_slot'] = 1; $dressed_items_row['dressed_slot'] <= $dressed_items->getNumRows(); $dressed_items_row['dressed_slot']++) {
for ($i = 1; $i <= 11; $i++) {
$dressed_item[$dressed_items_row['dressed_slot']] = $dressed_items_row ?? 0;
}
// while ($row = $dressed_items->fetch_assoc()) {