mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00: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:
parent
aac27e9213
commit
d98e3d00d2
1 changed files with 8 additions and 5 deletions
|
@ -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 != '')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue