MDL-50921 message: allow popup messages from noreply user
authorMarina Glancy <marina@moodle.com>
Tue, 11 Aug 2015 05:29:58 +0000 (13:29 +0800)
committerRyan Wyllie <ryan@moodle.com>
Mon, 7 Sep 2015 08:11:45 +0000 (08:11 +0000)
Thanks Gary Harris for the patch

lib/moodlelib.php

index a91cab4..a41a439 100644 (file)
@@ -8593,7 +8593,6 @@ function message_popup_window() {
                      FROM {message} m
                      JOIN {message_working} mw ON m.id=mw.unreadmessageid
                      JOIN {message_processors} p ON mw.processorid=p.id
-                     JOIN {user} u ON m.useridfrom=u.id
                      LEFT JOIN {message_contacts} c ON c.contactid = m.useridfrom
                                                    AND c.userid = m.useridto
                     WHERE m.useridto = :userid