mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
blog MDL-22161 Fixed minor regression
This commit is contained in:
parent
27bad0a629
commit
af8fe217ad
@ -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))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user