Open Callustian opened 5 years ago
@Callustian - which version of the plugin are you using?
@davidpesce Thank you for your reply.
I am using v4.2.5.
@Callustian @davidpesce @gordonmacqueen-lp @Patches- @lzabo Suggested code change in these methods:
// Get a valid user for guest.
$guest = false;
if ($event->userid == 0) {
$guest = true;
if (isset($CFG->siteguest)) {
$event->userid = $CFG->siteguest;
}
}
$user = $repo->read_record_by_id('user', $event->userid);
// Reset userid so it is the same as in logstore_standard_log.
if ($guest == true) {
$event->userid = 0;
}
Would it be possible to create a branch and put this in for code review in the following files: course_viewed.php user_created.php
Description
Version
Steps to reproduce the bug
Expected behaviour
Actual behaviour
Server information
Client information
Thank you.