# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/mod/forum/index.php
--- moodle/mod/forum/index.php Base (1.144)
+++ moodle/mod/forum/index.php Locally Modified (Based On 1.144)
@@ -90,7 +90,8 @@
 
 $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';
 }
