From ee5ca894a6f0ea11bda36c84ec319ea88f85e9d0 Mon Sep 17 00:00:00 2001 From: Brady Miller Date: Sun, 17 Sep 2023 22:23:14 -0700 Subject: [PATCH] fix: patient summary screen fix for receptionist (#6862) --- interface/patient_file/summary/demographics.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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