diff --git a/interface/patient_file/summary/stats_full.php b/interface/patient_file/summary/stats_full.php
index 57b7224ce..ad4cf4204 100644
--- a/interface/patient_file/summary/stats_full.php
+++ b/interface/patient_file/summary/stats_full.php
@@ -282,11 +282,21 @@ function newEncounter() {
$click_class='statrow';
if($row['erx_source']==1 && $focustype=='allergy') $click_class='';
elseif($row['erx_uploaded']==1 && $focustype=='medication') $click_class='';
-
+
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 (!is_null($row['begdate'])){
+ echo " " . text(date(DateFormatRead(true), strtotime($row['begdate']))) . " | \n";
+ } else {
+ echo " | \n";
+ }
+ if (!is_null($row['enddate'])){
+ echo " " . text(date(DateFormatRead(true), strtotime($row['enddate']))) . " | \n";
+ } else {
+ echo " | \n";
+ }
+
// both codetext and statusCompute have already been escaped above with htmlspecialchars)
echo " " . $codetext . " | \n";
echo " " . $statusCompute . " | \n";