From af8fe217adccbe0ee56f6ce691cf808bf0a651c9 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Fri, 23 Apr 2010 04:08:28 +0000 Subject: [PATCH] blog MDL-22161 Fixed minor regression --- blog/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/lib.php b/blog/lib.php index e7203ec930b..5ce5f662db5 100755 --- a/blog/lib.php +++ b/blog/lib.php @@ -439,7 +439,7 @@ function blog_get_options_for_course(stdClass $course, stdClass $user=null) { } // Serve from the cache if we've already generated for this course if (array_key_exists($key, $courseoptions)) { - return $courseoptions[$course->id]; + return $courseoptions[$key]; } if (has_capability('moodle/blog:view', get_context_instance(CONTEXT_COURSE, $course->id))) { -- 2.43.0