debuggage
This commit is contained in:
parent
9ad10750b0
commit
40e76403f5
@ -64,10 +64,10 @@ 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 "datefin =>" . $user['datefin'];
|
||||
$datefin = DateTime::createFromFormat("Y-m-d H:i:s", $user['datefin']);print_r($datefin);
|
||||
if( !empty($datefin) )
|
||||
{
|
||||
$datefin = DateTime::createFromFormat("Y-m-d H:i:s", $user['datefin']);
|
||||
$interval = new DateInterval('P0000Y02M00D');
|
||||
echo "vérification";
|
||||
|
||||
$datefin->add($interval);
|
||||
print_r($datefin);
|
||||
@ -79,6 +79,7 @@ while ($user = $doldb->result->fetch_assoc())
|
||||
// ré active l'utlisateur désactivé à jour de cotisation.
|
||||
echo "write_status( $insert, " . $user['login'] . ", 1 )";
|
||||
}
|
||||
}
|
||||
}else
|
||||
{
|
||||
//echo $user["login"] . " n'existe pas";
|
||||
|
Reference in New Issue
Block a user