do not optimise the $USER fetching - it was broken by mnethostid and would be again in future

This commit is contained in:
skodak
2007-10-09 13:43:51 +00:00
parent 922ddcad2c
commit a86840ecc9
3 changed files with 3 additions and 3 deletions
+1 -1
View 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 = '';
+1 -1
View 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 = '';
+1 -1
View 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 = '';