Permalink
Browse files

Fixed a typo SQL call

  • Loading branch information...
1 parent 244f6f3 commit 786dceabb3744c98dbeedf551dfbcc22d0a74fd1 moodler committed Jan 4, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 blocks/course_list/block_course_list.php
@@ -103,7 +103,7 @@ function get_remote_courses() {
$sql = "SELECT c.remoteid, c.shortname, c.fullname, c.hostid
FROM {$CFG->prefix}mnet_enrol_course c
JOIN {$CFG->prefix}mnet_enrol_assignments a ON c.id=a.courseid
- WHERE a.studentid={$USER->id}";
+ WHERE a.userid={$USER->id}";
if ($courses = get_records_sql($sql)) {
$icon = "<img src=\"$CFG->pixpath/i/mnethost.png\"".
" height=\"16\" width=\"16\" alt=\"".get_string("course")."\" />";

0 comments on commit 786dcea

Please sign in to comment.