handle problem on not set [alt_loginid] but displayed as var-name

This commit is contained in:
Klaus Leithoff 2014-05-13 10:42:45 +00:00
parent e4e4aa97bc
commit 70c0f8e64c
2 changed files with 8 additions and 5 deletions

View File

@ -91,7 +91,7 @@ class admin_accesslog
$row['sessionstatus'] = lang('logged out');
}
// eg. for bad login or password
if (!$row['account_id']) $row['alt_loginid'] = $row['loginid'];
if (!$row['account_id']) $row['alt_loginid'] = ($row['loginid']?$row['loginid']:lang('none'));
$readonlys['kill['.$row['sessionid'].']'] = $no_kill;
$readonlys['delete['.$row['sessionid'].']'] = $query['session_list'];

View File

@ -27,9 +27,12 @@
<nextmatch-sortheader label="User-Agent" id="user_agent"/>
</row>
<row class="row">
<menulist>
<menupopup type="select-account" label="$row_cont[alt_loginid]" id="${row}[account_id]" readonly="true"/>
</menulist>
<hbox>
<menulist>
<menupopup type="select-account" label="" id="${row}[account_id]" readonly="true"/>
</menulist>
<description id="${row}[alt_loginid]"/>
</hbox>
<description id="${row}[sessionstatus]"/>
<description id="${row}[loginid]"/>
<description id="${row}[ip]"/>
@ -68,4 +71,4 @@
.selectAllArrow { padding-right: 12px; }
</styles>
</template>
</overlay>
</overlay>