Skip to content

Commit

Permalink
Merge branch 'MDL-58559-master' of git://github.com/lameze/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Apr 18, 2017
2 parents 80483bf + 4e78551 commit 2660f7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/community/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ public function course_list($courses, $huburl, $contextcourseid) {
array('class' => 'hubcourseuserinfo'));

//create course content related information html
$course->subject = get_string($course->subject, 'edufields');
$course->subject = (get_string_manager()->string_exists($course->subject, 'edufields')) ?
get_string($course->subject, 'edufields') : get_string('none');
$course->audience = get_string('audience' . $course->audience, 'hub');
$course->educationallevel = get_string('edulevel' . $course->educationallevel, 'hub');
$coursecontentinfo = '';
Expand Down

0 comments on commit 2660f7d

Please sign in to comment.