aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2010-01-24 22:30:43 +0000
committerJoas Schilling <nickvergessen@gmx.de>2010-01-24 22:30:43 +0000
commit7d6718630b0af4add7b2d0ecbb6e7640941dcab3 (patch)
tree209eb39b6599e7db232311e8ec47b8ca7f9c0463 /phpBB/includes/functions_posting.php
parent71366a2ad279a1bb941c0bfa80505c1c8deecf84 (diff)
downloadforums-7d6718630b0af4add7b2d0ecbb6e7640941dcab3.tar
forums-7d6718630b0af4add7b2d0ecbb6e7640941dcab3.tar.gz
forums-7d6718630b0af4add7b2d0ecbb6e7640941dcab3.tar.bz2
forums-7d6718630b0af4add7b2d0ecbb6e7640941dcab3.tar.xz
forums-7d6718630b0af4add7b2d0ecbb6e7640941dcab3.zip
[Fix] Do not automatically unsubscribe users from topics, when email and jabber is disabled.
Authorised by: bantu git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10436 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 5f72d8d899..0a31ea49a8 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -2525,7 +2525,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
VALUES (' . $user->data['user_id'] . ', ' . $data['topic_id'] . ')';
$db->sql_query($sql);
}
- else if ($data['notify_set'] && !$data['notify'])
+ else if (($config['email_enable'] || $config['jab_enable']) && $data['notify_set'] && !$data['notify'])
{
$sql = 'DELETE FROM ' . TOPICS_WATCH_TABLE . '
WHERE user_id = ' . $user->data['user_id'] . '