mirror of
https://github.com/moodle/moodle.git
synced 2025-03-09 18:30:03 +01:00
Merge branch 'wip-MDL-34713-master' of git://github.com/phalacee/moodle
This commit is contained in:
commit
fcdb8cec4e
@ -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