diff --git a/mod/survey/report.php b/mod/survey/report.php index 7829211aaf6..9a9b252a201 100644 --- a/mod/survey/report.php +++ b/mod/survey/report.php @@ -71,7 +71,11 @@ print_heading("All scales, all students"); - echo "

\"Click"; + if (count_completed_surveys($survey->id)) { + echo "

\"Click"; + } else { + echo "

Nobody has yet completed this survey

"; + } print_footer($course); break;