Permalink
Browse files

More robust personal forum tracking logic.

  • Loading branch information...
1 parent 0d4109a commit 2bc9f15ac875aaafa6a01f94eae13ffcb6cbb55d mchurch committed Apr 25, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/lib.php
View
2 course/lib.php
@@ -1028,7 +1028,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
$groupid = ($groupmode == SEPARATEGROUPS && !isteacheredit($course->id)) ?
get_current_group($course->id) : false;
- if (forum_tp_is_tracked() && !isset($untracked[$mod->instance])) {
+ if (forum_tp_can_track_forums($USER->id) && !isset($untracked[$mod->instance])) {
$unread = forum_tp_count_forum_unread_posts($USER->id, $mod->instance, $groupid);
if ($unread) {
echo '<span class="unread"> <a href="'.$CFG->wwwroot.'/mod/forum/view.php?id='.$mod->id.'">';

0 comments on commit 2bc9f15

Please sign in to comment.