]> git.mjollnir.org Git - moodle.git/commitdiff
Added missing cmid parameter when calling add_to_log() function.
authorstronk7 <stronk7>
Mon, 16 Feb 2004 19:31:26 +0000 (19:31 +0000)
committerstronk7 <stronk7>
Mon, 16 Feb 2004 19:31:26 +0000 (19:31 +0000)
mod/chat/report.php
mod/survey/save.php

index 9d5a569a1ec2a9d287ad127e84fa76f4caf98b47..9ea6211440fc62646fb04140d4865bb38299eccc 100644 (file)
@@ -30,7 +30,7 @@
         error("You can not view these chat reports");
     }
 
-    add_to_log($course->id, "chat", "view", "view.php?id=$cm->id", "$chat->id");
+    add_to_log($course->id, "chat", "view", "view.php?id=$cm->id", "$chat->id", "$cm->id");
 
 /// Print the page header
 
index 007d0c94ed8cc49dff535afe42cd9fedbdff48b7..8f696016d20ff2520d59503323d7cd81737d0355 100644 (file)
@@ -30,7 +30,7 @@
         error("Survey ID was incorrect");
     }
 
-    add_to_log($course->id, "survey", "submit", "view.php?id=$cm->id", "$survey->id");
+    add_to_log($course->id, "survey", "submit", "view.php?id=$cm->id", "$survey->id", "$cm->id");
 
     if (survey_already_done($survey->id, $USER->id)) {
         notice(get_string("alreadysubmitted", "survey"), $_SERVER["HTTP_REFERER"]);