diff --git a/interface/patient_file/summary/demographics.php b/interface/patient_file/summary/demographics.php index 346471acf12..5f4c88c067a 100644 --- a/interface/patient_file/summary/demographics.php +++ b/interface/patient_file/summary/demographics.php @@ -1037,8 +1037,10 @@ function setMyPatient() { $cards = $allergy + $pl + $meds + $rx; $col = "p-1 "; - $colInt = 12 / $cards; - $col = "col-" . $colInt; + if ($cards > 0) { + $colInt = 12 / $cards; + $col = "col-" . $colInt; + } /** * Helper function to return only issues with an outcome not equal to resolved