Don't call format on an empty string and only pass the integer part of it
parent
2922202355
commit
fcccf33cf6
|
@ -154,7 +154,7 @@ function queryRequest() {
|
|||
|
||||
global $dateTimeFormatter;
|
||||
foreach ($results as $row) {
|
||||
$row['DateTime'] = $dateTimeFormatter->format($row['TimeKey']);
|
||||
$row['DateTime'] = empty($row['TimeKey']) ? '' : $dateTimeFormatter->format(intval($row['TimeKey']));
|
||||
$Server = ZM\Server::find_one(array('Id'=>$row['ServerId']));
|
||||
|
||||
$row['Server'] = $Server ? $Server->Name() : '';
|
||||
|
|
Loading…
Reference in New Issue