Fixed problem

pull/641/head
TimZ99 2018-09-05 21:42:05 +02:00
parent de29906f27
commit 55b4e12b7c
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ abstract class AbstractServerController extends AbstractController {
$server['last_online'] = psm_timespan($server['last_online']);
$server['last_offline'] = psm_timespan($server['last_offline']);
if ($server['last_offline'] != psm_get_lang('system', 'never')) {
$server['last_offline_duration'] = "(".$server['last_offline_duration'].")";
$server['last_offline_duration'] = is_null($server['last_offline_duration']) ?
null : "(".$server['last_offline_duration'].")";
}
$server['last_check'] = psm_timespan($server['last_check']);
$server['active'] = psm_get_lang('system', $server['active']);