From 7545e8466122c55cc832280c6a3ef6fa00940696 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Mon, 27 Oct 2014 16:00:08 +0800 Subject: [PATCH] MDL-47877 mod_forum: Correct subscription options for forums Test was the wrong way around when checking subscription state. --- mod/forum/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/forum/index.php b/mod/forum/index.php index b06f87efd89..f0ea4a8f693 100644 --- a/mod/forum/index.php +++ b/mod/forum/index.php @@ -268,7 +268,7 @@ if ($generalforums) { } if ($can_subscribe) { - if (\mod_forum\subscriptions::subscription_disabled($forum)) { + if (!\mod_forum\subscriptions::subscription_disabled($forum)) { $row[] = forum_get_subscribe_link($forum, $context, array('subscribed' => $stryes, 'unsubscribed' => $strno, 'forcesubscribed' => $stryes, 'cantsubscribe' => '-'), false, false, true);