MDL-42633 messages: Fix alternate name warnings when a message popup is shown
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user