Skip to content

Commit

Permalink
MDL-14113 fixed notices when tracking disabled; merged from MODOLE_19…
Browse files Browse the repository at this point in the history
…_STABLE
  • Loading branch information
skodak committed Apr 14, 2008
1 parent 1d33901 commit 3c2bf84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mod/forum/lib.php
Expand Up @@ -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);
Expand Down

0 comments on commit 3c2bf84

Please sign in to comment.