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))