message MDL-24894 now correctly setting timeread for notifications when there are no processors selected

This commit is contained in:
Andrew Davis
2010-10-28 07:12:39 +00:00
parent 429d09eadc
commit 6c4e8db081
+1 -1
View File
@@ -122,7 +122,7 @@ function message_send($eventdata) {
if ($processor=='none' && $savemessage->notification) {
//if they have deselected all processors and its a notification mark it read. The user doesnt want to be bothered
$savemessage->timeread = $timeread;
$savemessage->timeread = time();
$DB->insert_record('message_read', $savemessage);
} else { // Process the message
// Store unread message just in case we can not send it