diff --git a/classes/User.php b/classes/User.php index 8a1d2e9..620547e 100644 --- a/classes/User.php +++ b/classes/User.php @@ -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_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) { $dressed_items_array[$dressed_items['dressed_slot']][$key] = $value; $dressed_items_object[$dressed_items['dressed_slot']]->$key = $value;