aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-10-26 10:58:58 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-10-26 10:58:58 +0000
commitcd3eaf0e178a5b1cc9e45f8df2d1648e63a965c2 (patch)
tree49eb6141c81bd42772d306fe2645e75b93537698 /phpBB/posting.php
parentb79f709bfcea57d4e0adb1ff985ab4ca0a07e402 (diff)
downloadforums-cd3eaf0e178a5b1cc9e45f8df2d1648e63a965c2.tar
forums-cd3eaf0e178a5b1cc9e45f8df2d1648e63a965c2.tar.gz
forums-cd3eaf0e178a5b1cc9e45f8df2d1648e63a965c2.tar.bz2
forums-cd3eaf0e178a5b1cc9e45f8df2d1648e63a965c2.tar.xz
forums-cd3eaf0e178a5b1cc9e45f8df2d1648e63a965c2.zip
some bugfixes
git-svn-id: file:///svn/phpbb/trunk@6527 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 67a9acbeab..3e11492323 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -428,12 +428,6 @@ if ($mode != 'post' && $config['allow_topic_notify'] && $user->data['is_register
$db->sql_freeresult($result);
}
-// If the user is replying or posting and not already watching this topic but set to always being notified we need to overwrite this setting
-if ($mode != 'edit' && $config['allow_topic_notify'] && $user->data['is_registered'] && !$post_data['notify_set'])
-{
- $post_data['notify_set'] = $user->data['user_notify'];
-}
-
// Do we want to edit our post ?
if ($mode == 'edit' && $post_data['bbcode_uid'])
{
@@ -1091,8 +1085,9 @@ $sig_checked = $post_data['enable_sig'];
$lock_topic_checked = (isset($topic_lock)) ? $topic_lock : (($post_data['topic_status'] == ITEM_LOCKED) ? 1 : 0);
$lock_post_checked = (isset($post_lock)) ? $post_lock : $post_data['post_edit_locked'];
-// If in edit mode, and the user is not the poster, we do not take the notification into account
-$notify_checked = (isset($notify)) ? $notify : (($mode == 'post') ? $user->data['user_notify'] : $post_data['notify_set']);
+// If the user is replying or posting and not already watching this topic but set to always being notified we need to overwrite this setting
+$notify_set = ($mode != 'edit' && $config['allow_topic_notify'] && $user->data['is_registered'] && !$post_data['notify_set']) ? $user->data['user_notify'] : $post_data['notify_set'];
+$notify_checked = (isset($notify)) ? $notify : (($mode == 'post') ? $user->data['user_notify'] : $notify_set);
// Page title & action URL, include session_id for security purpose
$s_action = append_sid("{$phpbb_root_path}posting.$phpEx", "mode=$mode&amp;f=$forum_id", true, $user->session_id);