diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2003-02-28 12:57:10 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2003-02-28 12:57:10 +0000 |
commit | e42a20b32e18162afd3847a9849fe4760491d437 (patch) | |
tree | 3ee333cd83ac0409238f68f98c0ea0d0892a06b0 /phpBB/includes/message_parser.php | |
parent | b5031760af3f5f803cd5bc836fec00dbc7c016a7 (diff) | |
download | forums-e42a20b32e18162afd3847a9849fe4760491d437.tar forums-e42a20b32e18162afd3847a9849fe4760491d437.tar.gz forums-e42a20b32e18162afd3847a9849fe4760491d437.tar.bz2 forums-e42a20b32e18162afd3847a9849fe4760491d437.tar.xz forums-e42a20b32e18162afd3847a9849fe4760491d437.zip |
minor changes, re-added topicreview
git-svn-id: file:///svn/phpbb/trunk@3575 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/message_parser.php')
-rw-r--r-- | phpBB/includes/message_parser.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php index 59ed7c847e..166738bbfc 100644 --- a/phpBB/includes/message_parser.php +++ b/phpBB/includes/message_parser.php @@ -415,23 +415,23 @@ class parse_message set_config('num_posts', $config['num_posts'] + 1, TRUE); } - // Topic notification - if (!empty($misc_info['notify']) && ($mode == 'reply' || empty($misc_info['notify_set']))) + // Topic Notification + if ((!$misc_info['notify_set']) && ($misc_info['notify'])) { $sql = "INSERT INTO " . TOPICS_WATCH_TABLE . " (user_id, topic_id) VALUES (" . $user->data['user_id'] . ", " . $misc_info['topic_id'] . ")"; $db->sql_query($sql); } - else if (empty($misc_info['notify']) && !empty($misc_info['notify_set'])) + else if (($misc_info['notify_set']) && (!$misc_info['notify'])) { $sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " WHERE user_id = " . $user->data['user_id'] . " AND topic_id = " . $misc_info['topic_id']; $db->sql_query($sql); } - + // Mark this topic as read and posted to. - $mark_mode = ($mode == 'reply' || $mode == 'post') ? 'post' : 'topic'; + $mark_mode = ($mode == 'reply' || $mode == 'quote') ? 'post' : 'topic'; markread($mark_mode, $misc_info['forum_id'], $misc_info['topic_id'], $misc_info['post_id']); $db->sql_transaction('commit'); |