]> git.mjollnir.org Git - moodle.git/commitdiff
removed foter login link during initial phase of installation
authorskodak <skodak>
Sun, 17 Sep 2006 17:53:20 +0000 (17:53 +0000)
committerskodak <skodak>
Sun, 17 Sep 2006 17:53:20 +0000 (17:53 +0000)
lib/weblib.php

index b96dc1515cc608066d6c091c5c50fb663803178e..3d9e960e63c70def37ca47d1b9182bf5fdb3a906 100644 (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') {