Fix issue with limit of participants

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-07-09 15:50:46 +02:00
parent 0da24788d0
commit a6e337e046
2 changed files with 9 additions and 9 deletions

View File

@ -69,23 +69,23 @@ class InputService {
public function filterMail($mail) { public function filterMail($mail) {
/////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////
// formatting // formatting
$mail = trim($mail); $mail = trim($mail);
/////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////
// e-mail validation // e-mail validation
$resultat = FALSE; $resultat = FALSE;
$validator = new EmailValidator(); $validator = new EmailValidator();
if ($validator->isValid($mail, new RFCValidation())) { if ($validator->isValid($mail, new RFCValidation())) {
$resultat = $mail; $resultat = $mail;
} }
/////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////
// return // return
return $resultat; return $resultat;
} }
@ -104,7 +104,7 @@ class InputService {
public function filterValueMax($int) public function filterValueMax($int)
{ {
return $this->filterInteger($int) >= 1; return $this->filterInteger($int) >= 1 ? $this->filterInteger($int) : false;
} }
public function filterBoolean($boolean) { public function filterBoolean($boolean) {

View File

@ -236,7 +236,7 @@ switch ($step) {
// creation message // creation message
$sessionService->set("Framadate", "messagePollCreated", TRUE); $sessionService->set("Framadate", "messagePollCreated", TRUE);
// Redirect to poll administration // Redirect to poll administration
header('Location:' . Utils::getUrlSondage($admin_poll_id, true)); header('Location:' . Utils::getUrlSondage($admin_poll_id, true));
exit; exit;