diff --git a/admin/purge.php b/admin/purge.php
index 80b0f4e244d545fea9e6e87059396b8cdc2be424..5a8e2687370fc233b32014a7e7b6b960c9160dcb 100644
--- a/admin/purge.php
+++ b/admin/purge.php
@@ -17,6 +17,7 @@
  * Auteurs de Framadate/OpenSondage : Framasoft (https://github.com/framasoft)
  */
 
+use Framadate\Services\InputService;
 use Framadate\Services\LogService;
 use Framadate\Services\PurgeService;
 use Framadate\Services\SecurityService;
@@ -36,11 +37,12 @@ $message = null;
 $logService = new LogService();
 $purgeService = new PurgeService($connect, $logService);
 $securityService = new SecurityService();
+$inputService = new InputService();
 
 /* POST */
 /*-----*/
 
-$action = $inputService->filterName($_POST['action']);
+$action = $inputService->filterName(isset($_POST['action']) ? $_POST['action'] : null);
 
 /* PAGE */
 /* ---- */