Fix Bug #4626 - weblib.php: $course object conversion error in "print_footer " function

This commit is contained in:
moodler
2006-01-24 01:40:06 +00:00
parent 0b58de9ae1
commit a789577bf4
+2 -2
View File
@@ -2033,11 +2033,11 @@ function print_footer($course=NULL, $usercourse=NULL) {
/// Course links
if ($course) {
if ($course == 'none') { // Don't print any links etc
if (is_string($course) && $course == 'none') { // Don't print any links etc
$homelink = '';
$loggedinas = '';
$home = false;
} else if ($course == 'home') { // special case for site home page - please do not remove
} else if (is_string($course) && $course == 'home') { // special case for site home page - please do not remove
$course = get_site();
$homelink = '<div class="sitelink">'.
'<a title="moodle '. $CFG->release .' ('. $CFG->version .')" href="http://moodle.org/" target="_blank">'.