From: skodak Date: Sun, 17 Sep 2006 17:53:20 +0000 (+0000) Subject: removed foter login link during initial phase of installation X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8743f4f3ecb6ff8b95d065b3a6d1aacf18d265c9;p=moodle.git removed foter login link during initial phase of installation --- diff --git a/lib/weblib.php b/lib/weblib.php index b96dc1515c..3d9e960e63 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2600,7 +2600,10 @@ function user_login_string($course=NULL, $user=NULL) { $wwwroot = str_replace('http:','https:',$CFG->wwwroot); } - if (isset($user->id) and $user->id) { + if (empty($course->id)) { + // $course->id is not defined during installation + return ''; + } else if (isset($user->id) and $user->id) { $fullname = fullname($user, true); $username = "framename}\" href=\"$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id\">$fullname"; if (isset($user->username) && $user->username == 'guest') {