MDL-47877 mod_forum: Correct subscription options for forums

Test was the wrong way around when checking subscription state.
This commit is contained in:
Andrew Nicols 2014-10-27 16:00:08 +08:00
parent c5258dfa04
commit 7545e84661

View File

@ -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);