mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
Fix for poll deletion mistakenly altering forum stats [#1602]
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5833 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -413,6 +413,8 @@ function update_post_stats(&$mode, &$post_data, &$forum_id, &$topic_id, &$post_i
|
|||||||
$topic_update_sql .= 'topic_vote = 0';
|
$topic_update_sql .= 'topic_vote = 0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($mode != 'poll_delete')
|
||||||
|
{
|
||||||
$sql = "UPDATE " . FORUMS_TABLE . " SET
|
$sql = "UPDATE " . FORUMS_TABLE . " SET
|
||||||
$forum_update_sql
|
$forum_update_sql
|
||||||
WHERE forum_id = $forum_id";
|
WHERE forum_id = $forum_id";
|
||||||
@@ -420,6 +422,7 @@ function update_post_stats(&$mode, &$post_data, &$forum_id, &$topic_id, &$post_i
|
|||||||
{
|
{
|
||||||
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
|
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($topic_update_sql != '')
|
if ($topic_update_sql != '')
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user