forum MDLSITE-1034 fixed the logic around displaying forum subscriptions in index.php
authorAndrew Davis <andrew@affinitysoftware.net>
Tue, 5 Oct 2010 12:39:53 +0000 (12:39 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Tue, 5 Oct 2010 12:39:53 +0000 (12:39 +0000)
mod/forum/index.php

index c36232f..1b95fb7 100644 (file)
@@ -90,7 +90,8 @@ if ($usetracking = forum_tp_can_track_forums()) {
 
 $subscribed_forums = forum_get_subscribed_forums($course);
 
-if ($can_subscribe = (!is_enrolled($coursecontext))) {
+$can_subscribe = is_enrolled($coursecontext);
+if ($can_subscribe) {
     $generaltable->head[] = $strsubscribed;
     $generaltable->align[] = 'center';
 }