Permalink
Browse files

Little bug that caused the guest icon to display even when guest was …

…turned

off (if the password was null)
  • Loading branch information...
1 parent 57f3a4a commit f25f1e1b66d15f0ddc6d9668ed892714d9c1609a martin committed Sep 26, 2002
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/lib.php
View
2 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;";
}

0 comments on commit f25f1e1

Please sign in to comment.