From ffa7ea30219d34be57da3182ad7780ae86b312f5 Mon Sep 17 00:00:00 2001 From: xurror Date: Tue, 17 Mar 2020 16:28:36 +0100 Subject: [PATCH] Fix Patient Issues show Incorrect Dates When Left Blank closes https://github.com/LibreHealthIO/lh-ehr/issues/1555 --- interface/patient_file/summary/stats_full.php | 6 +++-- sites/default/sqlconf.php | 26 ------------------- 2 files changed, 4 insertions(+), 28 deletions(-) delete mode 100644 sites/default/sqlconf.php diff --git a/interface/patient_file/summary/stats_full.php b/interface/patient_file/summary/stats_full.php index 2b56b5835..d03b92e3c 100644 --- a/interface/patient_file/summary/stats_full.php +++ b/interface/patient_file/summary/stats_full.php @@ -277,8 +277,10 @@ function newEncounter() { echo " \n"; echo " " . text($disptitle) . "\n"; - echo " " . text(date(DateFormatRead(true), strtotime($row['begdate']))) . " \n"; - echo " " . text(date(DateFormatRead(true), strtotime($row['enddate']))) . " \n"; + if ($row['begdate'] == '') echo " " . 'N/A' . " \n"; + else echo " " . text(date(DateFormatRead(true), strtotime($row['begdate']))) . " \n"; + if ($row['enddate'] == '') echo " " . 'N/A' . " \n"; + else echo " " . text(date(DateFormatRead(true), strtotime($row['enddate']))) . " \n"; // both codetext and statusCompute have already been escaped above with htmlspecialchars) echo " " . $codetext . "\n"; echo " " . $statusCompute . " \n"; diff --git a/sites/default/sqlconf.php b/sites/default/sqlconf.php deleted file mode 100644 index 552a358fa..000000000 --- a/sites/default/sqlconf.php +++ /dev/null @@ -1,26 +0,0 @@ -