предметы не отображались

This commit is contained in:
Igor Barkov (iwork) 2020-07-21 15:14:25 +03:00
parent 72b4b73405
commit bc40aa5004

View File

@ -75,10 +75,9 @@ class User
//https://jsfiddle.net/ngx0yvhc
$di = new DressedItems($this->id);
$dressedItems = $di->getItemsInSlots();
echo print_r($dressedItems);
for ($i = 1; $i <= 12; $i++) {
echo sprintf('<div class="slot-%s">', $i);
if (isset($di->$dressedItems[$i])) {
if (!empty($dressedItems[$i])) {
if (!$isBattle && $isMain) {
$itemString = '<a href="?edit=1&drop=%s"><img src="/i/sh/%s" class="item-wrap-normal" alt="%s" title="%s"></a>';
echo sprintf($itemString, $i, $dressedItems[$i]['image'], $dressedItems[$i]['name'], $dressedItems[$i]['name']);