Commit 26761c97 authored by Thomas Citharel's avatar Thomas Citharel
Browse files

CS


Signed-off-by: default avatarThomas Citharel <tcit@tcit.fr>
parent eadf775b
...@@ -296,7 +296,7 @@ class PollService { ...@@ -296,7 +296,7 @@ class PollService {
$best_choices = $this->computeBestChoices($votes); $best_choices = $this->computeBestChoices($votes);
foreach ($best_choices['y'] as $i => $nb_choice) { foreach ($best_choices['y'] as $i => $nb_choice) {
// if for this option we have reached maximum value and user wants to add itself too // if for this option we have reached maximum value and user wants to add itself too
if ($poll->ValueMax != null && $nb_choice >= $poll->ValueMax && $user_choice[$i] === "2") { if ($poll->ValueMax !== null && $nb_choice >= $poll->ValueMax && $user_choice[$i] === "2") {
throw new ConcurrentVoteException(); throw new ConcurrentVoteException();
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment