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:
@@ -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))
|
||||||
|
Reference in New Issue
Block a user