From: martin <martin>
Date: Thu, 26 Sep 2002 11:10:20 +0000 (+0000)
Subject: Little bug that caused the guest icon to display even when guest was turned
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f25f1e1b66d15f0ddc6d9668ed892714d9c1609a;p=moodle.git

Little bug that caused the guest icon to display even when guest was turned
off (if the password was null)
---

diff --git a/course/lib.php b/course/lib.php
index 06204fc05a..5d9682383b 100644
--- a/course/lib.php
+++ b/course/lib.php
@@ -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;";
     }