From: stronk7 Date: Mon, 16 Feb 2004 19:31:26 +0000 (+0000) Subject: Added missing cmid parameter when calling add_to_log() function. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8f583218dfff4bf22b64c573e9f4019f3e941004;p=moodle.git Added missing cmid parameter when calling add_to_log() function. --- diff --git a/mod/chat/report.php b/mod/chat/report.php index 9d5a569a1e..9ea6211440 100644 --- a/mod/chat/report.php +++ b/mod/chat/report.php @@ -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 diff --git a/mod/survey/save.php b/mod/survey/save.php index 007d0c94ed..8f696016d2 100644 --- a/mod/survey/save.php +++ b/mod/survey/save.php @@ -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"]);