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";