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

This commit is contained in:
Jason Fowler
2013-03-08 14:13:07 +08:00
parent db0175400b
commit 586fff6894
+1 -1
View File
@@ -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));