Fixed a notice in isstudent()

This commit is contained in:
moodler
2004-08-01 06:21:59 +00:00
parent 6fc6e433e4
commit 7064e18f45
+4
View File
@@ -571,6 +571,10 @@ function isstudent($courseid, $userid=0) {
/// If course is site, is the user a confirmed user on the site?
global $USER;
if (empty($USER->id)) {
return false;
}
$site = get_site();
if ($courseid == $site->id) {
if (!$userid) {