Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
486fe80
)
MDL-25069, chat, check if user loggedin
author
Dongsheng Cai
<unoter@gmail.com>
Fri, 5 Nov 2010 02:41:16 +0000
(
02:41
+0000)
committer
Dongsheng Cai
<unoter@gmail.com>
Fri, 5 Nov 2010 02:41:16 +0000
(
02:41
+0000)
mod/chat/chat_ajax.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/chat/chat_ajax.php
b/mod/chat/chat_ajax.php
index
836dc49
..
feb9841
100644
(file)
--- a/
mod/chat/chat_ajax.php
+++ b/
mod/chat/chat_ajax.php
@@
-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)) {
chat_print_error('ERROR', get_string('invalidcoursemodule', 'error'));
}
-if (
isguestuser
()) {
+if (
!isloggedin
()) {
chat_print_error('ERROR', get_string('notlogged','chat'));
}