Skip to content

Commit

Permalink
MDL-34713 - Blog - Fixing undefined index for blog menu block
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnfwlr committed Mar 8, 2013
1 parent 8673a98 commit 46a710e
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 @@ -601,7 +601,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));
Expand Down

0 comments on commit 46a710e

Please sign in to comment.