diff --git a/app/classes/Framadate/Services/InputService.php b/app/classes/Framadate/Services/InputService.php
index 904fe95eaaa1edc1e7fd8a22e452c2ce4126fc9c..2b41c88814908f11997ec65ae8481c5845201d43 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 a66330d799baa723b6f921845b1fb5a3a5f266fb..83e04961ac857a7d95dff9cc20f6b99ff4ed6cd6 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;