1
0
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:
Meik Sievertsen
2003-06-06 19:05:21 +00:00
parent 01ca3bce0e
commit 7dd1ec0070
2 changed files with 24 additions and 16 deletions

View File

@@ -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'] . "