From 786dceabb3744c98dbeedf551dfbcc22d0a74fd1 Mon Sep 17 00:00:00 2001
From: moodler <moodler>
Date: Thu, 4 Jan 2007 06:08:37 +0000
Subject: [PATCH] Fixed a typo SQL call

---
 blocks/course_list/block_course_list.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php
index c307276ec72..ae879e7eb83 100644
--- a/blocks/course_list/block_course_list.php
+++ b/blocks/course_list/block_course_list.php
@@ -103,7 +103,7 @@ class block_course_list extends block_list {
         $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")."\" />";