From 7b13d4c4d889ec5677c32ac9870beaf26b569ac9 Mon Sep 17 00:00:00 2001 From: Agnibho Mondal Date: Wed, 9 Jun 2021 14:26:22 +0530 Subject: [PATCH] Bugfix --- lib/functions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/functions.php b/lib/functions.php index 6c6e664..d80dc47 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -200,7 +200,7 @@ function viewData($data, $edit=null){ } } -function viewAntibiogram($data, $edit){ +function viewAntibiogram($data, $edit=null){ $data=json_decode($data); $view=""; $view=$view.""; @@ -216,7 +216,9 @@ function viewAntibiogram($data, $edit){ if(!empty($data->note)){ $view=$view.""; } - $view=$view.""; + if(!empty($edit)){ + $view=$view.""; + } $view=$view."
Vitek Report".$data->date."
Note".$data->note."
Edit
Edit
"; return $view; } -- 2.39.5