From 2e03786ee77bbd92cd3cbaff2afc97532f0b76a6 Mon Sep 17 00:00:00 2001 From: int2001 Date: Thu, 29 Aug 2024 10:25:51 +0000 Subject: [PATCH] More substitutions --- application/controllers/Logbook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/Logbook.php b/application/controllers/Logbook.php index 748a0e0a8..8a2d61c68 100644 --- a/application/controllers/Logbook.php +++ b/application/controllers/Logbook.php @@ -685,9 +685,9 @@ class Logbook extends CI_Controller { } foreach ($query->result() as $row) { - $timestamp = strtotime($row->COL_TIME_ON); + $timestamp = strtotime($row->COL_TIME_ON ?? '1970-01-01 00:00:00'); $html .= ""; - $html .= "".date($custom_date_format, $timestamp). date(' H:i',strtotime($row->COL_TIME_ON)) . ""; + $html .= "".date($custom_date_format, $timestamp). date(' H:i',strtotime($row->COL_TIME_ON ?? '1970-01-01 00:00:00')) . ""; $html .= "" . str_replace('0','Ø',strtoupper($row->COL_CALL)) . ""; $html .= $this->part_table_col($row, $this->session->userdata('user_column1')==""?'Mode':$this->session->userdata('user_column1')); $html .= $this->part_table_col($row, $this->session->userdata('user_column2')==""?'RSTS':$this->session->userdata('user_column2'));