Permalink
Browse files

Better logging for guest when enrolling

  • Loading branch information...
1 parent d7d1f61 commit fbc797635e36c86562e080f217313bd49475fd5c martin committed Jul 31, 2002
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/enrol.php
View
@@ -17,7 +17,7 @@
if ($password == $course->password) {
if (isguest()) {
- add_to_log($course->id, "course", "guest", "view.php?id=$course->id", "$USER->id");
+ add_to_log($course->id, "course", "guest", "view.php?id=$course->id", "$REMOTE_ADDR, $REMOTE_HOST");
} else {
if (! enrol_student_in_course($USER->id, $course->id)) {
error("An error occurred while trying to enrol you.");

0 comments on commit fbc7976

Please sign in to comment.