From 042999aeb4a77bb944c8350159591535b2bd7b47 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Wed, 18 Dec 2019 22:34:14 +0100 Subject: [PATCH] bug $datefin au lieu de user['datefin'] --- nconnector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nconnector.php b/nconnector.php index 45831e8..ea71ca0 100755 --- a/nconnector.php +++ b/nconnector.php @@ -66,8 +66,8 @@ while ($user = $doldb->result->fetch_assoc()) write_status( $insert, $user["login"], $user["fk_user_valid"], $ncdb ); } // vérification si l'utilisateur est à jour de cotisation - echo "datefin => $datefin"; - if( !empty($datefin) ) + echo "datefin => $user['datefin']"; + if( !empty($user['datefin']) ) { $datefin = DateTime::createFromFormat("Y-m-d H:i:s", $user['datefin']); $interval = new DateInterval('P0000Y02M00D');