Skip to content
Browse files

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

…oodle
  • Loading branch information...
2 parents 94f5956 + 9d796fb commit 2ba08e4ba2bdb2e74b301c61e55f33c05b475c0d @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 2ba08e4

Please sign in to comment.
Something went wrong with that request. Please try again.