diff --git a/action/add_comment.php b/action/add_comment.php index 9d537d2..85453e7 100644 --- a/action/add_comment.php +++ b/action/add_comment.php @@ -61,7 +61,7 @@ if (!$poll) { $message = new Message('error', __('Error', 'This poll doesn\'t exist !')); } else if ($poll && !$securityService->canAccessPoll($poll)) { $message = new Message('error', __('Password', 'Wrong password')); -} else if ($poll) { +} else { $name = $inputService->filterName($_POST['name']); $comment = $inputService->filterComment($_POST['comment']);