fix formatting

This commit is contained in:
2016-06-04 13:29:31 +10:00
parent 372c4d4f80
commit 804396ddf7
2 changed files with 4 additions and 4 deletions

View File

@@ -685,8 +685,7 @@ function travel_view($node, $view_mode)
);
$rows[] = array(
t('Flight Arrival:'),
t('!date', array(
'!date' => format_date($node->booking_flight_datetime_inbound, 'custom', 'd/m/Y H:i')
t('!date', array('!date' => $node->booking_flight_datetime_inbound == 0 ? '' : format_date($node->booking_flight_datetime_inbound, 'custom', 'd/m/Y H:i')
))
);
$rows[] = array(
@@ -695,8 +694,7 @@ function travel_view($node, $view_mode)
);
$rows[] = array(
t('Flight Departure:'),
t('!date', array(
'!date' => format_date($node->booking_flight_datetime_outbound, 'custom', 'd/m/Y H:i')
t('!date', array('!date' => $node->booking_flight_datetime_outbound == 0 ? '' : format_date($node->booking_flight_datetime_outbound, 'custom', 'd/m/Y H:i')
))
);
$rows[] = array(