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 "
";
- 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 "
" . T_("Case not yet started in Limesurvey") . "
";
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") . "
";
?>