From 6c4e8db0813281b3617d60f1a66ab69ec8494ae2 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Thu, 28 Oct 2010 07:12:39 +0000 Subject: [PATCH] message MDL-24894 now correctly setting timeread for notifications when there are no processors selected --- lib/messagelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/messagelib.php b/lib/messagelib.php index dce3d38ec33..325ddffee08 100644 --- a/lib/messagelib.php +++ b/lib/messagelib.php @@ -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