mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-7734 fixed warning when $course not defined when printing help button; merged from MOODLE_17_STABLE
This commit is contained in:
parent
37601e884f
commit
c1be9b31a2
@ -4507,7 +4507,7 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
|
||||
global $CFG, $course;
|
||||
|
||||
// fix for MDL-7734
|
||||
if ($course->lang) {
|
||||
if (!empty($course->lang)) {
|
||||
$forcelang = $course->lang;
|
||||
} else {
|
||||
$forcelang = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user