aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2011-07-20 00:55:49 +0200
committerJoas Schilling <nickvergessen@gmx.de>2011-11-06 23:51:29 +0100
commit1a19388aa38113262db648caedd4a745f5691ed1 (patch)
tree9726b5487b10fc7cf8c95cf483e7d6f1ceb151ea /phpBB/viewforum.php
parentd60ffdd55c4066b8e69c0522c464ec1ada4b0913 (diff)
downloadforums-1a19388aa38113262db648caedd4a745f5691ed1.tar
forums-1a19388aa38113262db648caedd4a745f5691ed1.tar.gz
forums-1a19388aa38113262db648caedd4a745f5691ed1.tar.bz2
forums-1a19388aa38113262db648caedd4a745f5691ed1.tar.xz
forums-1a19388aa38113262db648caedd4a745f5691ed1.zip
[ticket/10237] Display login-box for guests, when (un)subscribing
Also initialise $is_watching for PHP Notice: Undefined variable is_watching PHPBB3-10237
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index e0b51bf782..2eacbb500a 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -205,7 +205,7 @@ $s_watching_forum = array(
'is_watching' => false,
);
-if (($config['email_enable'] || $config['jab_enable']) && $config['allow_forum_notify'] && $forum_data['forum_type'] == FORUM_POST && $auth->acl_get('f_subscribe', $forum_id))
+if (($config['email_enable'] || $config['jab_enable']) && $config['allow_forum_notify'] && $forum_data['forum_type'] == FORUM_POST && ($auth->acl_get('f_subscribe', $forum_id) || $user->data['user_id'] == ANONYMOUS))
{
$notify_status = (isset($forum_data['notify_status'])) ? $forum_data['notify_status'] : NULL;
watch_topic_forum('forum', $s_watching_forum, $user->data['user_id'], $forum_id, 0, $notify_status, $start, $forum_data['forum_name']);