diff --git a/classes/User.php b/classes/User.php index 620547e..5f6d139 100644 --- a/classes/User.php +++ b/classes/User.php @@ -47,7 +47,7 @@ class User $dressed_items_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_array[$dressed_items['dressed_slot']][$key] = $value; $dressed_items_object[$dressed_items['dressed_slot']]->$key = $value; } @@ -74,8 +74,9 @@ USERINFO; if (isset($dressed_items_object[4])) { echo "!На пузе — " .$dressed_items_array[4]->name.PHP_EOL; } - var_dump($dressed_items_array).PHP_EOL; + //var_dump($dressed_items_array).PHP_EOL; var_dump($dressed_items_object).PHP_EOL; + echo "
"; var_dump($dressed_items).PHP_EOL; } } \ No newline at end of file