diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-04-13 21:09:07 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-04-25 11:52:26 +0200 |
commit | ddbb521e57e0a6e3accb8fc3aeebe938aacf9000 (patch) | |
tree | 9490f678247e131254fdb1ad15c874b58dd63e8e | |
parent | 793680478bb751a4541aadd6ab4c973f24f5d8f2 (diff) | |
download | forums-ddbb521e57e0a6e3accb8fc3aeebe938aacf9000.tar forums-ddbb521e57e0a6e3accb8fc3aeebe938aacf9000.tar.gz forums-ddbb521e57e0a6e3accb8fc3aeebe938aacf9000.tar.bz2 forums-ddbb521e57e0a6e3accb8fc3aeebe938aacf9000.tar.xz forums-ddbb521e57e0a6e3accb8fc3aeebe938aacf9000.zip |
[ticket/12371] Correctly set is_starter when editing first post of the topic
PHPBB3-12371
-rw-r--r-- | phpBB/includes/functions_posting.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 887c73f7de..73e95ae89a 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -2049,7 +2049,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u // If the post was not approved, it could also be the starter, // so we sync the starter after approving/restoring, to ensure that the stats are correct // Same applies for the last post - $is_starter = ($post_mode == 'edit_first_post' || $data['post_visibility'] != ITEM_APPROVED); + $is_starter = ($post_mode == 'edit_first_post' || $post_mode == 'edit_topic' || $data['post_visibility'] != ITEM_APPROVED); $is_latest = ($post_mode == 'edit_last_post' || $post_mode == 'edit_topic' || $data['post_visibility'] != ITEM_APPROVED); $phpbb_content_visibility = $phpbb_container->get('content.visibility'); |