From: defacer Date: Sat, 20 Nov 2004 18:30:31 +0000 (+0000) Subject: Fixed a couple PHP notices which cropped up X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3088137459c17d48b0577d66fbd49e81898ebe56;p=moodle.git Fixed a couple PHP notices which cropped up --- diff --git a/enrol/enrol.class.php b/enrol/enrol.class.php index dc41a2cd80..79d17d2bcc 100644 --- a/enrol/enrol.class.php +++ b/enrol/enrol.class.php @@ -325,13 +325,13 @@ function get_access_icons($course) { $str = ''; - if ($course->guest) { + if (!empty($course->guest)) { $strallowguests = get_string("allowguests"); $str .= ''; $str .= ''.$strallowguests.'  '; } - if ($course->password) { + if (!empty($course->password)) { $strrequireskey = get_string("requireskey"); $str .= ''; $str .= ''.$strrequireskey.'';