Browse files

Merge branch 'wip-MDL-29487-m21' of git://github.com/samhemelryk/mood…

…le into MOODLE_21_STABLE
  • Loading branch information...
2 parents e90206a + 8710d49 commit 8daff43635847ab0dd98e6f79d6f51933a822f56 @nebgor nebgor committed Sep 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/enrollib.php
View
2 lib/enrollib.php
@@ -254,7 +254,7 @@ function enrol_sharing_course($user1, $user2) {
$sql = "SELECT DISTINCT 'x'
FROM {enrol} e
JOIN {user_enrolments} ue1 ON (ue1.enrolid = e.id AND ue1.status = :active1 AND ue1.userid = :user1)
- JOIN {user_enrolments} ue2 ON (ue1.enrolid = e.id AND ue1.status = :active2 AND ue2.userid = :user2)
+ JOIN {user_enrolments} ue2 ON (ue2.enrolid = e.id AND ue2.status = :active2 AND ue2.userid = :user2)
JOIN {course} c ON (c.id = e.courseid AND c.visible = 1)
WHERE e.status = :enabled AND e.enrol $plugins";

0 comments on commit 8daff43

Please sign in to comment.