1
0

bug $datefin au lieu de user['datefin']

This commit is contained in:
Daniel Tartavel 2019-12-18 22:34:14 +01:00
parent 0e3b864ecb
commit 042999aeb4

View File

@ -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');