This commit is contained in:
moodler 2003-01-01 06:40:31 +00:00
parent f747744495
commit 346b1a2483
2 changed files with 2 additions and 2 deletions

View file

@ -404,7 +404,7 @@ function isstudent($courseid, $userid=0) {
global $USER;
if (!$userid) {
return $USER->student[$courseid];
return !empty($USER->student[$courseid]);
}
// $timenow = time(); // todo: add time check below