aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2008-10-14 15:05:30 +0000
committerChris Smith <toonarmy@phpbb.com>2008-10-14 15:05:30 +0000
commit02dd8c52c2150ebf2e1f85032bcdf2924d00557b (patch)
tree7860aef10ffa1615f52a6f1d308a360f85283671 /phpBB
parent80437c21a9416238061149e92f204b842f40f864 (diff)
downloadforums-02dd8c52c2150ebf2e1f85032bcdf2924d00557b.tar
forums-02dd8c52c2150ebf2e1f85032bcdf2924d00557b.tar.gz
forums-02dd8c52c2150ebf2e1f85032bcdf2924d00557b.tar.bz2
forums-02dd8c52c2150ebf2e1f85032bcdf2924d00557b.tar.xz
forums-02dd8c52c2150ebf2e1f85032bcdf2924d00557b.zip
Forum last post information is now correctly updated when a topic/post is disapproved due to editing. #24475
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9014 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/docs/CHANGELOG.html1
-rw-r--r--phpBB/includes/functions_posting.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index 17c57d2c6c..5257039535 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -145,6 +145,7 @@
<li>[Fix] Round the displayed percentages in polls. (Bug #32375)</li>
<li>[Fix] Disable mass e-mail when e-mail is disabled. (Bug #27385)</li>
<li>[Fix] Display coloured poster username of queued posts displayed on the front of the MCP.</li>
+ <li>[Fix] Forum last post information is now correctly updated when a topic/post is disapproved due to editing. (Bug #24475)</li>
<li>[Change] No longer allow the direct use of MULTI_INSERT in sql_build_array. sql_multi_insert() must be used.</li>
<li>[Change] Display warning in ACP if config.php file is left writable.</li>
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index eaa3ab0cd3..d62cc7d699 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -2106,7 +2106,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
// we need to update the last forum information
// only applicable if the topic is not global and it is approved
// we also check to make sure we are not dealing with globaling the latest topic (pretty rare but still needs to be checked)
- if ($topic_type != POST_GLOBAL && !$make_global && ($post_approved || !$data['post_approved']))
+ if ($topic_type != POST_GLOBAL && !$make_global && ($post_approved != $data['post_approved']))
{
// the last post makes us update the forum table. This can happen if...
// We make a new topic