diff --git a/e107_plugins/poll/poll_class.php b/e107_plugins/poll/poll_class.php index 4e8812afe..1b40c2d53 100644 --- a/e107_plugins/poll/poll_class.php +++ b/e107_plugins/poll/poll_class.php @@ -497,7 +497,8 @@ class poll $SUBMITBUTTON = ""; - if (('preview' == $type || $preview == TRUE) && strpos(e_SELF, "viewtopic") === FALSE) + // disable submit when previewing the poll or when NOT viewing the poll in the forum + if (('preview' == $type || $preview == TRUE) && strpos(e_REQUEST_SELF, "forum") === FALSE) { $SUBMITBUTTON = ""; }