do not optimise the $USER fetching - it was broken by mnethostid and would be again in future
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
@@ -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 = '';
|
||||
|
||||
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user