Corrected the format of the offline duration and added the column to the server list

pull/153/head
Matthew Pattman 2014-11-07 15:10:06 +00:00
parent 400e84d354
commit a47528f12f
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class StatusController extends AbstractServerController {
$server['last_offline_nice'] = psm_timespan($server['last_offline']);
$server['last_offline_duration_nice'] = "";
if ($server['last_offline_nice'] != psm_get_lang('system', 'never')) {
$server['last_offline_duration_nice'] = "(".psm_timespan($server['last_offline_duration']).")";
$server['last_offline_duration_nice'] = "(".$server['last_offline_duration'].")";
}
$server['url_view'] = psm_build_url(array('mod' => 'server', 'action' => 'view', 'id' => $server['server_id'], 'back_to' => 'server_status'));