Added missing cmid parameter when calling add_to_log() function.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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"]);
|
||||
|
||||
Reference in New Issue
Block a user