Permalink
Browse files

Bug fix on record counting

  • Loading branch information...
1 parent aa96df8 commit 4242a73f3704488739c808fb93430aef1f47c7e4 moodler committed Nov 6, 2002
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/view.php
View
@@ -51,7 +51,7 @@
echo "<P align=right><A HREF=\"submissions.php?id=$assignment->id\">".
get_string("viewfeedback", "assignment")."</A></P>";
} else {
- $count = count_records_sql("SELECT * FROM assignment_submissions
+ $count = count_records_sql("SELECT COUNT(*) FROM assignment_submissions
WHERE assignment = '$assignment->id'
AND timemodified > 0");
echo "<P align=right><A HREF=\"submissions.php?id=$assignment->id\">".

0 comments on commit 4242a73

Please sign in to comment.