Permalink
Browse files

Merging notice removal from HEAD

  • Loading branch information...
1 parent d94c70c commit cd47b250c28534590b7a3b51b5f0bfbcc5940fe0 defacer committed Nov 20, 2004
Showing with 2 additions and 2 deletions.
  1. +2 −2 enrol/enrol.class.php
View
4 enrol/enrol.class.php
@@ -325,12 +325,12 @@ function get_access_icons($course) {
$str = '';
- if ($course->guest) {
+ if (!empty($course->guest)) {
$strallowguests = get_string("allowguests");
$str .= "<a title=\"$strallowguests\" href=\"$CFG->wwwroot/course/view.php?id=$course->id\">";
$str .= "<img vspace=4 alt=\"$strallowguests\" height=16 width=16 border=0 src=\"$CFG->pixpath/i/guest.gif\"></a>&nbsp;&nbsp;";
}
- if ($course->password) {
+ if (!empty($course->password)) {
$strrequireskey = get_string("requireskey");
$str .= "<a title=\"$strrequireskey\" href=\"$CFG->wwwroot/course/view.php?id=$course->id\">";
$str .= "<img vspace=4 alt=\"$strrequireskey\" height=16 width=16 border=0 src=\"$CFG->pixpath/i/key.gif\"></a>";

0 comments on commit cd47b25

Please sign in to comment.