предметы не отображались
This commit is contained in:
parent
72b4b73405
commit
bc40aa5004
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user