From 3d0e3b4ae623fda2e83d0b9b6ea70b7d505f7338 Mon Sep 17 00:00:00 2001 From: Agnibho Mondal Date: Fri, 21 May 2021 16:35:58 +0530 Subject: [PATCH] Bugfix --- www/nursing.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/nursing.php b/www/nursing.php index 5008024..2bafa2e 100644 --- a/www/nursing.php +++ b/www/nursing.php @@ -2,6 +2,10 @@ require(dirname(__DIR__)."/require.php"); if(!empty($_GET["pid"])){ $pid=$_GET["pid"]; + if(empty($_POST["intake"]) && empty($_POST["output"])){ + if(!empty($_POST["io_from"])) $_POST["io_from"]=""; + if(!empty($_POST["io_to"])) $_POST["io_to"]=""; + } if(!empty($_POST["date"]) && !empty($_POST["time"])){ if(!empty($_GET["id"])){ $db->editNursing($_POST, $pid, $_GET["id"]); -- 2.39.5