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") . "
"; ?>