From 729ee7b328e136a6e4d2d85801f9a4953847ceb7 Mon Sep 17 00:00:00 2001 From: Alexandre Anriot Date: Thu, 15 Sep 2005 11:39:53 +0000 Subject: [PATCH] statut doit etre definis. --- admin/lib/Evoauth/Iptables.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin/lib/Evoauth/Iptables.pm b/admin/lib/Evoauth/Iptables.pm index 1e273ec..83b8663 100644 --- a/admin/lib/Evoauth/Iptables.pm +++ b/admin/lib/Evoauth/Iptables.pm @@ -92,6 +92,8 @@ sub check_iptables() { $sth->fetch(); # si entrée iptables présente mais statut non connecté, on supprime + defined($statut) ? $statut : 0; + if ($statut != 1) { &Evoauth::Functions::Log("$ip [supprimée]\n") && &Evoauth::Functions::Mail("Suppression", $ip); @@ -121,6 +123,7 @@ sub check_timestamp() { &Evoauth::Functions::Log("Vérification de la base."); my ($newtime, $oldtime, $cpt); + defined($statut) ? $statut : 0; while ($sth->fetch() && $sth != 0) { if ($statut == 1) {