From: martin Date: Tue, 25 Jun 2002 07:17:51 +0000 (+0000) Subject: Don't show overall graph when no students have completed survey X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=77f4a40bbb54b8a0d4247a2fb93d0ffd3a55d3dd;p=moodle.git Don't show overall graph when no students have completed survey --- 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;