From af83c153f7ad12911ad08644532b24baa0393476 Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Mon, 4 Aug 2014 15:36:32 +0200 Subject: [PATCH] Forum plugin - now deletes poll when topic is deleted --- e107_plugins/forum/forum_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_plugins/forum/forum_class.php b/e107_plugins/forum/forum_class.php index db8525ef6..c5a833c08 100644 --- a/e107_plugins/forum/forum_class.php +++ b/e107_plugins/forum/forum_class.php @@ -1756,7 +1756,7 @@ class e107forum if ($threadInfo = $this->threadGet($threadId)) { // delete poll if there is one - $sql->delete('poll', 'poll_datestamp='.$threadId); + $sql->delete('polls', 'poll_datestamp='.$threadId); //decrement user post counts if ($postCount = $this->threadGetUserPostcount($threadId))