1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Forum plugin - now deletes poll when topic is deleted

This commit is contained in:
Tijn Kuyper
2014-08-04 15:36:32 +02:00
parent bcbdaf698e
commit af83c153f7

View File

@@ -1756,7 +1756,7 @@ class e107forum
if ($threadInfo = $this->threadGet($threadId)) if ($threadInfo = $this->threadGet($threadId))
{ {
// delete poll if there is one // delete poll if there is one
$sql->delete('poll', 'poll_datestamp='.$threadId); $sql->delete('polls', 'poll_datestamp='.$threadId);
//decrement user post counts //decrement user post counts
if ($postCount = $this->threadGetUserPostcount($threadId)) if ($postCount = $this->threadGetUserPostcount($threadId))