Skip to content

Commit

Permalink
Fix Patient Issues show Incorrect Dates When Left Blank
Browse files Browse the repository at this point in the history
  • Loading branch information
xurror committed Mar 17, 2020
1 parent 5e70666 commit 3450834
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions interface/patient_file/summary/stats_full.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,10 @@ function newEncounter() {

echo " <tr class='$bgclass detail' $colorstyle>\n";
echo " <td style='text-align:left' data-text='$disptitle' class='$click_class' id='$rowid'>" . text($disptitle) . "</td>\n";
echo " <td>" . text(date(DateFormatRead(true), strtotime($row['begdate']))) . "&nbsp;</td>\n";
echo " <td>" . text(date(DateFormatRead(true), strtotime($row['enddate']))) . "&nbsp;</td>\n";
if ($row['begdate'] == '') echo " <td>" . 'N/A' . "&nbsp;</td>\n";
else echo " <td>" . text(date(DateFormatRead(true), strtotime($row['begdate']))) . "&nbsp;</td>\n";
if ($row['enddate'] == '') echo " <td>" . 'N/A' . "&nbsp;</td>\n";
else echo " <td>" . text(date(DateFormatRead(true), strtotime($row['enddate']))) . "&nbsp;</td>\n";
// both codetext and statusCompute have already been escaped above with htmlspecialchars)
echo " <td>" . $codetext . "</td>\n";
echo " <td>" . $statusCompute . "&nbsp;</td>\n";
Expand Down

0 comments on commit 3450834

Please sign in to comment.