diff --git a/root/portal/block/poll.php b/root/portal/block/poll.php index 4530180b..f9932d0c 100644 --- a/root/portal/block/poll.php +++ b/root/portal/block/poll.php @@ -201,6 +201,7 @@ if( $poll_forums === TRUE ) FROM ' . TOPICS_TABLE . ' t, ' . FORUMS_TABLE . " f WHERE t.forum_id = f.forum_id AND t.topic_approved = 1 AND t.poll_start > 0 {$where} + AND t.topic_moved_id = 0 ORDER BY t.poll_start DESC"; $limit = ( isset($portal_config['portal_poll_limit']) ) ? $portal_config['portal_poll_limit'] : 3; diff --git a/root/portal/includes/functions.php b/root/portal/includes/functions.php index 4afac24b..7e2dde73 100644 --- a/root/portal/includes/functions.php +++ b/root/portal/includes/functions.php @@ -190,6 +190,7 @@ function phpbb_fetch_posts($forum_from, $number_of_posts, $text_length, $time, $ ' . $post_time . ' AND t.topic_status <> 2 AND t.topic_approved = 1 + AND t.topic_moved_id = 0 ' . $str_where .' ORDER BY ' . $topic_order;