mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-34713 - Blog - Fixing undefined index for blog menu block
This commit is contained in:
parent
8673a98d1d
commit
46a710e998
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user