MDL-14113 fixed notices when tracking disabled; merged from MODOLE_19_STABLE

This commit is contained in:
skodak
2008-04-14 07:32:24 +00:00
parent 1d33901361
commit 3c2bf848df
+3
View File
@@ -1472,6 +1472,9 @@ function forum_get_discussion_posts($discussion, $sort, $forumid) {
function forum_get_all_discussion_posts($discussionid, $sort, $tracking=false) {
global $CFG, $USER;
$tr_sel = "";
$tr_join = "";
if ($tracking) {
$now = time();
$cutoffdate = $now - ($CFG->forum_oldpostdays * 24 * 3600);