diff options
author | David M <davidmj@users.sourceforge.net> | 2007-05-11 23:29:59 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2007-05-11 23:29:59 +0000 |
commit | 6244422da939bc2b06739b5ef6ac129bf88df42e (patch) | |
tree | 4ba4a72eafe4287d884cdef3616ad492327ee9c5 /phpBB/includes/functions_posting.php | |
parent | a1195a2752adfd80ae92840dbf587b15a75ff696 (diff) | |
download | forums-6244422da939bc2b06739b5ef6ac129bf88df42e.tar forums-6244422da939bc2b06739b5ef6ac129bf88df42e.tar.gz forums-6244422da939bc2b06739b5ef6ac129bf88df42e.tar.bz2 forums-6244422da939bc2b06739b5ef6ac129bf88df42e.tar.xz forums-6244422da939bc2b06739b5ef6ac129bf88df42e.zip |
#10781
Thanks APTX
git-svn-id: file:///svn/phpbb/trunk@7537 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-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 912e73a8a7..3b0da3d63b 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -1432,7 +1432,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u } else if ($mode == 'edit') { - $post_mode = ($data['topic_first_post_id'] == $data['topic_last_post_id']) ? 'edit_topic' : (($data['topic_first_post_id'] == $data['post_id']) ? 'edit_first_post' : (($data['topic_last_post_id'] == $data['post_id']) ? 'edit_last_post' : 'edit')); + $post_mode = ($data['topic_replies_real'] == 0) ? 'edit_topic' : (($data['topic_first_post_id'] == $data['post_id']) ? 'edit_first_post' : (($data['topic_last_post_id'] == $data['post_id']) ? 'edit_last_post' : 'edit')); } // First of all make sure the subject and topic title are having the correct length. |