merged fix for MDL-10564, wrong userid used in get_my_courses() for blogs

This commit is contained in:
toyomoyo 2007-07-26 02:47:44 +00:00
parent 787fb606a6
commit 6872debcc8

View File

@ -433,7 +433,7 @@
break;
case BLOG_COURSE_LEVEL:
$mycourses = array_keys(get_my_courses($targetuserid));
$mycourses = array_keys(get_my_courses($USER->id));
$usercourses = array_keys(get_my_courses($targetuserid));
$shared = array_intersect($mycourses, $usercourses);
if (!empty($shared)) {
@ -443,7 +443,7 @@
break;
case BLOG_GROUP_LEVEL:
$mycourses = array_keys(get_my_courses($targetuserid));
$mycourses = array_keys(get_my_courses($USER->id));
$usercourses = array_keys(get_my_courses($targetuserid));
$shared = array_intersect($mycourses, $usercourses);
foreach ($shared as $courseid) {