From 1a592eda7c514aba1741a3c2b8acf215d1472d9f Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Sat, 6 Jun 2026 06:05:32 +0530 Subject: [PATCH] Add safer checks for \ variable Add isset() and is_array() checks before using \ to prevent PHP warnings/errors if variable is not set or not an array. This ensures cleaner JavaScript output even if the variable is undefined. --- app/Views/billing/ipd/discharge_create.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Views/billing/ipd/discharge_create.php b/app/Views/billing/ipd/discharge_create.php index e523cc8..f74017a 100644 --- a/app/Views/billing/ipd/discharge_create.php +++ b/app/Views/billing/ipd/discharge_create.php @@ -1668,7 +1668,7 @@ $allergyStatusNoKnown = in_array($allergyStatusNormalized, ['no known drug aller function initDischargeComplaintsTable() { // Load existing complaints from PHP (if any) - + selectedDischargeComplaints = [