Bug fix on record counting
authormoodler <moodler>
Wed, 6 Nov 2002 08:44:44 +0000 (08:44 +0000)
committermoodler <moodler>
Wed, 6 Nov 2002 08:44:44 +0000 (08:44 +0000)
mod/assignment/view.php

index f6d5733..fbe3dfd 100644 (file)
@@ -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\">".