diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2003-06-06 19:05:21 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2003-06-06 19:05:21 +0000 |
| commit | 7dd1ec0070391b7e8bbf4995cb6b134a3a213c39 (patch) | |
| tree | 343a180b78b572870bad1288c8f4657326598b63 /phpBB/includes | |
| parent | 01ca3bce0ebd7171f24b9df40799ed04c21199f0 (diff) | |
| download | forums-7dd1ec0070391b7e8bbf4995cb6b134a3a213c39.tar forums-7dd1ec0070391b7e8bbf4995cb6b134a3a213c39.tar.gz forums-7dd1ec0070391b7e8bbf4995cb6b134a3a213c39.tar.bz2 forums-7dd1ec0070391b7e8bbf4995cb6b134a3a213c39.tar.xz forums-7dd1ec0070391b7e8bbf4995cb6b134a3a213c39.zip | |
my turn to break things... only small changes.
git-svn-id: file:///svn/phpbb/trunk@4093 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/functions_posting.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 8e26cc00b3..533cc1fd9e 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -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'] . " |
