diff --git a/nconnector.php b/nconnector.php index ea0e684..c9bc0bb 100755 --- a/nconnector.php +++ b/nconnector.php @@ -64,8 +64,8 @@ while ($user = $doldb->result->fetch_assoc()) write_status( $insert, $user["login"], $user["fk_user_valid"] ); } // vérification si l'utilisateur est à jour de cotisation - echo "vérification"; - $datefin = DateTime::createFromFormat("Y-m-d H:i:s", $user['datefin']); + $datefin = DateTime::createFromFormat("Y-m-d H:i:s", $user['datefin']); echo "vérification"; + $interval = new DateInterval('P0000Y02M00D'); print_r($datefin); $datefin->add($interval);