]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-7734 fixed warning when $course not defined when printing help button; merged...
authorskodak <skodak>
Sat, 9 Dec 2006 13:34:26 +0000 (13:34 +0000)
committerskodak <skodak>
Sat, 9 Dec 2006 13:34:26 +0000 (13:34 +0000)
lib/weblib.php

index baf5392e41c5732704a83d82a6fa428bbe5a20f1..58da7d00342a939663385faf6ebbaec1dc56f384 100644 (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 = '';