diff --git a/core/module/config/tool/autobackup.php b/core/module/config/tool/autobackup.php index bb1e1fa4..52166257 100644 --- a/core/module/config/tool/autobackup.php +++ b/core/module/config/tool/autobackup.php @@ -18,7 +18,6 @@ if (isset ($_GET['key'])) { http_response_code(401); exit(); } -} else { // Création du ZIP $filter = ['backup', 'tmp']; $fileName = date('Y-m-d-H-i-s', time()) . '-rolling-backup.zip'; diff --git a/core/module/config/tool/cleanautobackup.php b/core/module/config/tool/cleanautobackup.php index c18800b9..f0144d10 100644 --- a/core/module/config/tool/cleanautobackup.php +++ b/core/module/config/tool/cleanautobackup.php @@ -23,7 +23,6 @@ if (isset ($_GET['key'])) { http_response_code(401); exit(); } -} else { // Récupère le nombre de jours à partir de la variable GET 'days' $days = isset ($_GET['days']) ? (int) $_GET['days'] : 1; // Par défaut à 1 si non spécifié