removed foter login link during initial phase of installation

This commit is contained in:
skodak 2006-09-17 17:53:20 +00:00
parent 8a66975e84
commit 8743f4f3ec

View File

@ -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 = "<a target=\"{$CFG->framename}\" href=\"$CFG->wwwroot/user/view.php?id=$user->id&amp;course=$course->id\">$fullname</a>";
if (isset($user->username) && $user->username == 'guest') {