diff --git a/e107_plugins/poll/poll_class.php b/e107_plugins/poll/poll_class.php index 1d082afee..6d821a9c7 100644 --- a/e107_plugins/poll/poll_class.php +++ b/e107_plugins/poll/poll_class.php @@ -747,7 +747,7 @@ class poll "; - $option_count = (count(vartrue($_POST['poll_option'])) ? count($_POST['poll_option']) : 1); + $option_count = !empty($_POST['poll_option']) ? count($_POST['poll_option']) : 1; $text .= " ".POLLAN_4."