Permalink
Browse files

MDL-34713 - Blog - Fixing undefined index for blog menu block

  • Loading branch information...
1 parent d461ecf commit 3ec12a21734e09491b27f0cc7aebb46cce1a95a6 @jsnfwlr jsnfwlr committed Mar 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 blog/lib.php
View
2 blog/lib.php
@@ -602,7 +602,7 @@ function blog_get_options_for_module($module, $user=null) {
}
if (array_key_exists($key, $moduleoptions)) {
// Serve from the cache so we don't have to regenerate
- return $moduleoptions[$module->id];
+ return $moduleoptions[$key];
}
$canparticipate = (is_enrolled($modcontext) or is_viewing($modcontext));

0 comments on commit 3ec12a2

Please sign in to comment.