Skip to content

Commit

Permalink
Don't show overall graph when no students have completed survey
Browse files Browse the repository at this point in the history
  • Loading branch information
martin committed Jun 25, 2002
1 parent b416a1c commit 77f4a40
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mod/survey/report.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@


print_heading("All scales, all students"); print_heading("All scales, all students");


echo "<P ALIGN=CENTER><A HREF=\"report.php?action=scales&id=$id\"><IMG HEIGHT=$GHEIGHT WIDTH=$GWIDTH ALT=\"Click here to see the scales in more detail\" BORDER=0 SRC=\"graph.php?id=$id&type=overall.png\"></A>"; if (count_completed_surveys($survey->id)) {
echo "<P ALIGN=CENTER><A HREF=\"report.php?action=scales&id=$id\"><IMG HEIGHT=$GHEIGHT WIDTH=$GWIDTH ALT=\"Click here to see the scales in more detail\" BORDER=0 SRC=\"graph.php?id=$id&type=overall.png\"></A>";
} else {
echo "<P ALIGN=CENTER>Nobody has yet completed this survey</P>";
}
print_footer($course); print_footer($course);
break; break;


Expand Down

0 comments on commit 77f4a40

Please sign in to comment.