From 6872debcc8ab99468820ef66b2258284e8b25110 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Thu, 26 Jul 2007 02:47:44 +0000 Subject: [PATCH] merged fix for MDL-10564, wrong userid used in get_my_courses() for blogs --- blog/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blog/lib.php b/blog/lib.php index b5a3d8162..1bfc95f65 100755 --- a/blog/lib.php +++ b/blog/lib.php @@ -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) { -- 2.11.4.GIT