Skip to content

Commit

Permalink
Added missing cmid parameter when calling add_to_log() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Feb 16, 2004
1 parent 0e27a3a commit 8f58321
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/chat/report.php
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion mod/survey/save.php
Expand Up @@ -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"]);
Expand Down

0 comments on commit 8f58321

Please sign in to comment.