From a6e337e046a97194060b37f324ade1caaccb1fd8 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 9 Jul 2018 15:50:46 +0200 Subject: [PATCH] Fix issue with limit of participants Signed-off-by: Thomas Citharel --- app/classes/Framadate/Services/InputService.php | 16 ++++++++-------- create_date_poll.php | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/classes/Framadate/Services/InputService.php b/app/classes/Framadate/Services/InputService.php index 904fe95..2b41c88 100644 --- a/app/classes/Framadate/Services/InputService.php +++ b/app/classes/Framadate/Services/InputService.php @@ -69,23 +69,23 @@ class InputService { public function filterMail($mail) { /////////////////////////////////////////////////////////////////////////////////////// // formatting - + $mail = trim($mail); - + /////////////////////////////////////////////////////////////////////////////////////// // e-mail validation - + $resultat = FALSE; - + $validator = new EmailValidator(); - + if ($validator->isValid($mail, new RFCValidation())) { $resultat = $mail; } - + /////////////////////////////////////////////////////////////////////////////////////// // return - + return $resultat; } @@ -104,7 +104,7 @@ class InputService { public function filterValueMax($int) { - return $this->filterInteger($int) >= 1; + return $this->filterInteger($int) >= 1 ? $this->filterInteger($int) : false; } public function filterBoolean($boolean) { diff --git a/create_date_poll.php b/create_date_poll.php index a66330d..83e0496 100644 --- a/create_date_poll.php +++ b/create_date_poll.php @@ -236,7 +236,7 @@ switch ($step) { // creation message $sessionService->set("Framadate", "messagePollCreated", TRUE); - + // Redirect to poll administration header('Location:' . Utils::getUrlSondage($admin_poll_id, true)); exit;