Fix Bug #4626 - weblib.php: $course object conversion error in "print_footer " function
This commit is contained in:
+2
-2
@@ -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">'.
|
||||
|
||||
Reference in New Issue
Block a user