Старт переноса showinf_pers(); в класс

This commit is contained in:
lopar 2020-07-04 16:04:25 +03:00
parent c25bc6cbfd
commit 60449d9eb1

View File

@ -46,7 +46,7 @@ class User
public function showUserInfo() {
$dressed_items_array = [];
$dressed_items = db::c()->query('SELECT * FROM inventory WHERE owner_id = ?i AND dressed_slot > 0', $this->id);
foreach ($dressed_items->fetch_assoc_array() as $key=>$value) {
foreach ($dressed_items->fetch_assoc() as $key=>$value) {
$dressed_items_array[$dressed_items['dressed_slot']][$key] = $value;
}