From c5f52b9b02447bef9ee4a9128a29404c6ecffb4d Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Mon, 7 Sep 2015 16:14:06 +1000 Subject: [PATCH] Fixed notices in supervisor --- admin/supervisor.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/supervisor.php b/admin/supervisor.php index 3c6278c9..b394f10b 100644 --- a/admin/supervisor.php +++ b/admin/supervisor.php @@ -385,7 +385,7 @@ if ($case_id != false) print ""; // * disable appointment creation if no sample_id - if ($r[0]['sample_id']){ + if (isset($r[0]['sample_id'])){ $rtz= $r[0]['Time_zone_name']; print "  " . T_("Create appointment") . ""; } @@ -464,7 +464,7 @@ if ($case_id != false) print "
"; - if ($r[0]['sample_id']){ //if sample data exists assign this to an operator for their next case + if (isset($r[0]['sample_id'])){ //if sample data exists assign this to an operator for their next case print "

 " . T_("Assign this case to operator (will appear as next case for them)") . "

"; ?> @@ -493,7 +493,7 @@ if ($case_id != false) print ""; print "
"; - if ($r[0]['sample_id']){ // if sample data exists view availability + if (isset($r[0]['sample_id'])){ // if sample data exists view availability print "

 " . T_("Availability groups") . "

"; if (is_using_availability($case_id)) @@ -551,7 +551,7 @@ if ($case_id != false) "; - if ($r[0]['sample_id']){ // if sample data exists deidentify record + if (isset($r[0]['sample_id'])){ // if sample data exists deidentify record print "

 " . T_("Deidentify") . "

"; print "
" . T_("Remove all sample details and contact numbers from this case") . "
"; ?>