diff --git a/phpBB/posting.php b/phpBB/posting.php index 5cbac0cca7..a6fdb1436d 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -941,10 +941,11 @@ if( ( $submit || $confirm || $mode == "delete" ) && !$error ) { $sql .= ", forum_topics = forum_topics + 1"; } + + $sql .= " WHERE forum_id = $forum_id"; /* if( $topic_type != POST_GLOBAL_ANNOUNCE ) { - $sql .= " WHERE forum_id = $forum_id"; } */ if($db->sql_query($sql)) @@ -2255,7 +2256,7 @@ if( $mode == 'newtopic' || ( $mode == 'editpost' && $is_first_post_topic ) ) if( $userdata['user_level'] == ADMIN ) { - $global_announce_toggle = '