From 77f4a40bbb54b8a0d4247a2fb93d0ffd3a55d3dd Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 25 Jun 2002 07:17:51 +0000 Subject: [PATCH] Don't show overall graph when no students have completed survey --- mod/survey/report.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/survey/report.php b/mod/survey/report.php index 7829211aaf..9a9b252a20 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; -- 2.39.5