From: Petr Skoda Date: Sat, 7 Nov 2009 10:30:03 +0000 (+0000) Subject: MDL-20625 forbid transactions when sending messages - we can not undo emails X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e484041b8cc005e2a30ba3015983c352fff98ef5;p=moodle.git MDL-20625 forbid transactions when sending messages - we can not undo emails --- diff --git a/lib/messagelib.php b/lib/messagelib.php index ec2d3f28ab..916372926a 100644 --- a/lib/messagelib.php +++ b/lib/messagelib.php @@ -46,7 +46,9 @@ function message_send($eventdata) { //TODO: this function is very slow and inefficient, it would be a major bottleneck in cron processing, this has to be improved in 2.0 // probably we could add two parameters with user messaging preferences and we could somehow preload/cache them in cron - //TODO: we need to solve problems with database transactions here somehow + + //TODO: we need to solve problems with database transactions here somehow, for now we just prevent transactions - sorry + $DB->transactions_forbidden(); if (isset($CFG->block_online_users_timetosee)) { $timetoshowusers = $CFG->block_online_users_timetosee * 60;