mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
fixed broken enrol description fetching
This commit is contained in:
parent
0b03619469
commit
64942a9d65
1 changed files with 2 additions and 2 deletions
|
@ -561,11 +561,11 @@ function enrol_get_course_description_texts($course) {
|
|||
$instances = enrol_get_instances($course->id, true);
|
||||
$plugins = enrol_get_plugins(true);
|
||||
foreach ($instances as $instance) {
|
||||
if (!isset($plugins[$instance->name])) {
|
||||
if (!isset($plugins[$instance->enrol])) {
|
||||
//weird
|
||||
continue;
|
||||
}
|
||||
$plugin = $plugins[$enrol->name];
|
||||
$plugin = $plugins[$instance->enrol];
|
||||
$text = $plugin->get_description_text($instance);
|
||||
if ($text !== NULL) {
|
||||
$lines[] = $text;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue