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
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"]);