diff --git a/course/report/log/lib.php b/course/report/log/lib.php index 21279b91ddf..6f01dc2335f 100644 --- a/course/report/log/lib.php +++ b/course/report/log/lib.php @@ -113,7 +113,7 @@ function print_mnet_log_selector_form($hostid, $course, $selecteduser=0, $select } } } else { - $sql = "select distinct course, coursename from mdl_mnet_log where hostid = '$hostid_'"; + $sql = "select distinct course, coursename from {$CFG->prefix}mnet_log where hostid = '$hostid_'"; if ($ccc = get_records_sql($sql)) { foreach ($ccc as $cc) { if (1 == $cc->course) { // TODO: MDL-8187 : this might be wrong - site course may have another id