Useless else if removed
This commit is contained in:
parent
3eae4d97d4
commit
1376426f27
@ -61,7 +61,7 @@ if (!$poll) {
|
|||||||
$message = new Message('error', __('Error', 'This poll doesn\'t exist !'));
|
$message = new Message('error', __('Error', 'This poll doesn\'t exist !'));
|
||||||
} else if ($poll && !$securityService->canAccessPoll($poll)) {
|
} else if ($poll && !$securityService->canAccessPoll($poll)) {
|
||||||
$message = new Message('error', __('Password', 'Wrong password'));
|
$message = new Message('error', __('Password', 'Wrong password'));
|
||||||
} else if ($poll) {
|
} else {
|
||||||
$name = $inputService->filterName($_POST['name']);
|
$name = $inputService->filterName($_POST['name']);
|
||||||
$comment = $inputService->filterComment($_POST['comment']);
|
$comment = $inputService->filterComment($_POST['comment']);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user