mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
my turn to break things... only small changes.
git-svn-id: file:///svn/phpbb/trunk@4093 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1159,13 +1159,13 @@ function submit_post($mode, $message, $subject, $username, $topic_type, $bbcode_
|
||||
}
|
||||
|
||||
// Topic Notification
|
||||
if (!$post_data['notify_set'] && $post_data['notify'])
|
||||
if (($post_data['notify_set'] == 0 || $post_data['notify_set'] == -1) && $post_data['notify'])
|
||||
{
|
||||
$sql = "INSERT INTO " . TOPICS_WATCH_TABLE . " (user_id, topic_id)
|
||||
VALUES (" . $user->data['user_id'] . ", " . $post_data['topic_id'] . ")";
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
else if ($post_data['notify_set'] && !$post_data['notify'])
|
||||
else if ($post_data['notify_set'] == 1 && !$post_data['notify'])
|
||||
{
|
||||
$sql = "DELETE FROM " . TOPICS_WATCH_TABLE . "
|
||||
WHERE user_id = " . $user->data['user_id'] . "
|
||||
|
Reference in New Issue
Block a user