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

This commit is contained in:
lopar 2020-07-04 18:47:01 +03:00
parent a94421e109
commit e05d84d928

View File

@ -45,7 +45,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)->fetch_assoc();
$dressed_items = db::c()->query('SELECT * FROM inventory WHERE owner_id = ?i AND dressed_slot > 0', $this->id)->fetch_assoc_array();
foreach ($dressed_items as $key=>$value) {
$dressed_items_array[$dressed_items['dressed_slot']][$key] = $value;
}