MDL-7734 fixed warning when $course not defined when printing help button; merged from MOODLE_17_STABLE

This commit is contained in:
skodak 2006-12-09 13:34:26 +00:00
parent 37601e884f
commit c1be9b31a2

View File

@ -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 = '';