From a789577bf459f94dfb07a8d19b5760c25da86d3a Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 24 Jan 2006 01:40:06 +0000 Subject: [PATCH] Fix Bug #4626 - weblib.php: $course object conversion error in "print_footer " function --- lib/weblib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 7c5ae4268de..a1f73107543 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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 = '