From 2ac897cd40c45521a44c43562de174a04d975458 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 5 Jun 2008 20:27:56 +0000 Subject: [PATCH] MDL-15108 some forgotten conversions --- mod/forum/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index fcec9a950e..ee13a08e9c 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -416,7 +416,7 @@ function forum_cron() { $queue->discussionid = $discussion->id; $queue->postid = $post->id; $queue->timemodified = $post->created; - if (!insert_record('forum_queue', $queue)) { + if (!$DB->insert_record('forum_queue', $queue)) { mtrace("Error: mod/forum/cron.php: Could not queue for digest mail for id $post->id to user $userto->id ($userto->email) .. not trying again."); } continue; @@ -507,7 +507,7 @@ function forum_cron() { // Delete any really old ones (normally there shouldn't be any) $weekago = $timenow - (7 * 24 * 3600); - delete_records_select('forum_queue', "timemodified < $weekago"); + $DB->delete_records_select('forum_queue', "timemodified < ?", array($weekago)); mtrace ('Cleaned old digest records'); if ($CFG->digestmailtimelast < $digesttime and $timenow > $digesttime) { -- 2.39.5