Skip to content

Commit

Permalink
blog MDL-22161 Fixed minor regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Apr 23, 2010
1 parent 27bad0a commit af8fe21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))) {
Expand Down

0 comments on commit af8fe21

Please sign in to comment.