MDL-25069, chat, check if user loggedin

This commit is contained in:
Dongsheng Cai 2010-11-05 02:41:16 +00:00
parent 486fe803c1
commit 2412f8b882

View file

@ -42,7 +42,7 @@ if (!$course = $DB->get_record('course', array('id'=>$chat->course))) {
if (!$cm = get_coursemodule_from_instance('chat', $chat->id, $course->id)) { if (!$cm = get_coursemodule_from_instance('chat', $chat->id, $course->id)) {
chat_print_error('ERROR', get_string('invalidcoursemodule', 'error')); chat_print_error('ERROR', get_string('invalidcoursemodule', 'error'));
} }
if (isguestuser()) { if (!isloggedin()) {
chat_print_error('ERROR', get_string('notlogged','chat')); chat_print_error('ERROR', get_string('notlogged','chat'));
} }