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

This commit is contained in:
lopar 2020-07-04 19:32:31 +03:00
parent 3c4afdf766
commit 28df3b93ee

View File

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