From 7664fe2efb722058accb1edf6866802109055ef1 Mon Sep 17 00:00:00 2001 From: liorgi Date: Thu, 7 Apr 2016 17:34:18 +0300 Subject: [PATCH 1/2] MDL-53702 mod_forum: Remove unused variables --- mod/forum/lib.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 5aec1baf397..f9f6779d78c 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -1823,8 +1823,6 @@ function forum_get_all_discussion_posts($discussionid, $sort, $tracking=false) { $params = array(); if ($tracking) { - $now = time(); - $cutoffdate = $now - ($CFG->forum_oldpostdays * 24 * 3600); $tr_sel = ", fr.id AS postread"; $tr_join = "LEFT JOIN {forum_read} fr ON (fr.postid = p.id AND fr.userid = ?)"; $params[] = $USER->id; From 73dcd8282a735f73cd1c1b5f129a5a0161709747 Mon Sep 17 00:00:00 2001 From: liorgi Date: Sun, 10 Apr 2016 08:51:57 +0300 Subject: [PATCH 2/2] MDL-53702 mod_forum: Remove unused variables --- mod/forum/lib.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index f9f6779d78c..61e3460f042 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -2933,8 +2933,6 @@ function forum_get_discussions_count($cm) { $groupselect = ""; } - $cutoffdate = $now - ($CFG->forum_oldpostdays*24*60*60); - $timelimit = ""; if (!empty($CFG->forum_enabletimedposts)) {