message MDL-24879 removed commented out code
This commit is contained in:
+1
-1
@@ -325,7 +325,7 @@ function cron_run() {
|
||||
mtrace ('Built context paths');
|
||||
|
||||
if (!empty($CFG->messagingdeletereadnotificationsdelay)) {
|
||||
$notificationdeletetime = time() - $CFG->messagingdeletereadnotificationsdelay; //604800; //1 week ago
|
||||
$notificationdeletetime = time() - $CFG->messagingdeletereadnotificationsdelay;
|
||||
$DB->delete_records_select('message_read', 'notification=1 AND timeread<:notificationdeletetime', array('notificationdeletetime'=>$notificationdeletetime));
|
||||
mtrace('Cleaned up read notifications');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user