Skip to content

Commit

Permalink
MDLSITE-320 digest processing should be able to continue without dupl…
Browse files Browse the repository at this point in the history
…icates if fails; merged from MOODLE_19_STABLE
  • Loading branch information
skodak committed Mar 18, 2008
1 parent ffa2134 commit 91e4508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/forum/lib.php
Expand Up @@ -488,7 +488,7 @@ function forum_cron() {

mtrace('Sending forum digests: '.userdate($timenow, '', $sitetimezone));

$digestposts_rs = get_recordset('forum_queue');
$digestposts_rs = get_recordset_select('forum_queue', "timemodified < $digesttime");

if (!rs_EOF($digestposts_rs)) {

Expand Down Expand Up @@ -568,7 +568,7 @@ function forum_cron() {
mtrace(get_string('processingdigest', 'forum', $userid), '... ');

// First of all delete all the queue entries for this user
delete_records('forum_queue', 'userid', $userid);
delete_records_select('forum_queue', "userid = $userid AND timemodified < $digesttime");
$userto = $users[$userid];

// Override the language and timezone of the "current" user, so that
Expand Down

0 comments on commit 91e4508

Please sign in to comment.