Skip to content

Commit

Permalink
MDL-7734 fixed warning when $course not defined when printing help bu…
Browse files Browse the repository at this point in the history
…tton
  • Loading branch information
skodak committed Dec 9, 2006
1 parent 723a084 commit d21dbfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/weblib.php
Original file line number Diff line number Diff line change
Expand Up @@ -4547,7 +4547,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 = '';
Expand Down

0 comments on commit d21dbfd

Please sign in to comment.