MDL-42633 messages: Fix alternate name warnings when a message popup is shown

This commit is contained in:
Ankit Agarwal 2013-10-31 16:07:50 +08:00
parent 68291f2d57
commit 7887cc65f1

View file

@ -8602,7 +8602,8 @@ function message_popup_window() {
}
// Got unread messages so now do another query that joins with the user table.
$messagesql = "SELECT m.id, m.smallmessage, m.fullmessageformat, m.notification, u.firstname, u.lastname
$namefields = get_all_user_name_fields(true, 'u');
$messagesql = "SELECT m.id, m.smallmessage, m.fullmessageformat, m.notification, $namefields
FROM {message} m
JOIN {message_working} mw ON m.id=mw.unreadmessageid
JOIN {message_processors} p ON mw.processorid=p.id