]> git.mjollnir.org Git - moodle.git/commitdiff
do not optimise the $USER fetching - it was broken by mnethostid and would be again...
authorskodak <skodak>
Tue, 9 Oct 2007 13:43:51 +0000 (13:43 +0000)
committerskodak <skodak>
Tue, 9 Oct 2007 13:43:51 +0000 (13:43 +0000)
mod/chat/gui_header_js/jsupdate.php
mod/chat/gui_header_js/jsupdated.php
mod/chat/gui_header_js/users.php

index f6825f5fddc6c4f039300162dd3f73dd0d0925ea..d288f0ed0dddf30a7cc73a16e68a01f30d98af99 100644 (file)
@@ -19,7 +19,7 @@
     }
 
     //Get the user theme and enough info to be used in chat_format_message() which passes it along to
-    if (!$USER = get_record('user','id',$chatuser->userid,'','','','','id, lang, theme, username, timezone')) {
+    if (!$USER = get_record('user','id',$chatuser->userid)) { // no optimisation here, it would break again in future!
         error('User does not exist!');
     }
     $USER->description = '';
index 13bc3369688dbe71da64f3bc802442445eb31f24..4bee2b32f6ea3322d1ca5126dea307bbeaee43c3 100644 (file)
@@ -42,7 +42,7 @@
 
     //Get the user theme and enough info to be used in chat_format_message() which passes it along to
     // chat_format_message_manually() -- and only id and timezone are used.
-    if (!$USER = get_record('user','id',$chatuser->userid,'','','','','id, lang, theme, username, timezone')) {
+    if (!$USER = get_record('user','id',$chatuser->userid)) { // no optimisation here, it would break again in future!
         error('User does not exist!');
     }
     $USER->description = '';
index 35956794a96c49343bbb0595864149b25a499d16..8ceca1a30b3087447fc6f7a647eabb037d4d6e54 100644 (file)
@@ -18,7 +18,7 @@
     }
 
     //Get the user theme and enough info to be used in chat_format_message() which passes it along to
-    if (!$USER = get_record('user','id',$chatuser->userid,'','','','','id, lang, theme, username, timezone')) {
+    if (!$USER = get_record('user','id',$chatuser->userid)) { // no optimisation here, it would break again in future!
         error('User does not exist!');
     }
     $USER->description = '';