Старт переноса showinf_pers(); в класс (fuck!_)
This commit is contained in:
parent
deb4e20894
commit
5b4cf16a61
@ -45,7 +45,7 @@ class User
|
|||||||
|
|
||||||
public function showUserInfo() {
|
public function showUserInfo() {
|
||||||
$dressed_items_array = [];
|
$dressed_items_array = [];
|
||||||
$dressed_items = db::c()->query('SELECT * FROM inventory WHERE owner_id = ?i AND dressed_slot > 0', $this->id)->fetch_object_array();
|
$dressed_items = db::c()->query('SELECT * FROM inventory WHERE owner_id = ?i AND dressed_slot > 0', $this->id)->fetch_object();
|
||||||
foreach ($dressed_items as $key=>$value) {
|
foreach ($dressed_items as $key=>$value) {
|
||||||
$dressed_items_array[$dressed_items['dressed_slot']][$key] = $value;
|
$dressed_items_array[$dressed_items['dressed_slot']][$key] = $value;
|
||||||
$dressed_items_object[$dressed_items['dressed_slot']]->$key = $value;
|
$dressed_items_object[$dressed_items['dressed_slot']]->$key = $value;
|
||||||
|
Loading…
Reference in New Issue
Block a user