message MDL-24879 removed commented out code

This commit is contained in:
Andrew Davis 2010-10-28 04:00:38 +00:00
parent 212badff4d
commit 7868480ab3

View file

@ -325,7 +325,7 @@ function cron_run() {
mtrace ('Built context paths'); mtrace ('Built context paths');
if (!empty($CFG->messagingdeletereadnotificationsdelay)) { 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)); $DB->delete_records_select('message_read', 'notification=1 AND timeread<:notificationdeletetime', array('notificationdeletetime'=>$notificationdeletetime));
mtrace('Cleaned up read notifications'); mtrace('Cleaned up read notifications');
} }