]> git.mjollnir.org Git - moodle.git/commitdiff
Minor fixes
authormoodler <moodler>
Mon, 28 Apr 2003 15:52:51 +0000 (15:52 +0000)
committermoodler <moodler>
Mon, 28 Apr 2003 15:52:51 +0000 (15:52 +0000)
mod/assignment/lib.php
mod/assignment/submissions.php

index 100a3d23861916f8c45c0da83b1e05727296b847..672d83a4c2aee0918a7daacd52bd7fad9bd0ee85 100644 (file)
@@ -247,7 +247,7 @@ function assignment_log_info($log) {
                               AND u.id = '$log->userid'");
 }
 
-function assignment_get_all_submissions($assignment, $sort="timemodified", $dir="DESC") {
+function assignment_get_all_submissions($assignment, $sort="", $dir="DESC") {
 /// Return all assignment submissions by ENROLLED students
     global $CFG;
 
index 132bd36093f3f89048d7d6d11fbecf32d5638399..57e1d45c6bf7fd6aee7a119e81f29d957309d40a 100644 (file)
@@ -4,6 +4,7 @@
     require_once("lib.php");
 
     require_variable($id);    // Assignment
+    optional_variable($sort, ""); 
 
     if (! $assignment = get_record("assignment", "id", $id)) {
         error("Course module is incorrect");