Show ban info in one table row

FromLondon

Honk Honk
TeamSpeak Developer
VIP
May 20, 2016
264
107
136
Hello guys, i`m trying to write anything useful with ts3 php framework and get this problem
One ban, but can`t show one ban on one row of table
1moZcSj.png

CodePHP=
PHP:
    $banList = [];
    try {
        $banArray = $vServer->banList();
    } catch (TeamSpeak3_Exception $e)
    {}


    foreach ($banArray as $item) {

        $banList[] = $item;
    }
Smarty=

Code:
{if !empty($bans)}
                    {foreach from=$bans item=baninfo}
                        <tr>
                            <td>
                                <input type="radio" name="ban_id" value="{$baninfo.banid}" /></td>
                            <td>{$baninfo.ip}</td>
                            <td>{if $baninfo.lastnickname eq ''}{$baninfo.name}{else}{$baninfo.lastnickname}{/if}</td>
                            <td>{$baninfo.uid}</td>
                        </tr>
                    {/foreach}
                    {/if}
 
Top