]> git.mjollnir.org Git - moodle.git/commitdiff
Little bug that caused the guest icon to display even when guest was turned
authormartin <martin>
Thu, 26 Sep 2002 11:10:20 +0000 (11:10 +0000)
committermartin <martin>
Thu, 26 Sep 2002 11:10:20 +0000 (11:10 +0000)
off (if the password was null)

course/lib.php

index 06204fc05abd3df36786556fd4d222fde0697cae..5d9682383b18596f13628d77b376cd19485c2bad 100644 (file)
@@ -250,7 +250,7 @@ function print_course($course) {
         }
         echo "</FONT></P>";
     }
-    if ($course->guest or ($course->password == "")) {
+    if ($course->guest) {
         echo "<A TITLE=\"".get_string("allowguests")."\" HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">";
         echo "<IMG VSPACE=4 ALT=\"\" HEIGHT=16 WIDTH=16 BORDER=0 SRC=\"$CFG->wwwroot/user/user.gif\"></A>&nbsp;&nbsp;";
     }