debuggage
This commit is contained in:
parent
fb6d6492fd
commit
b1a2adacf8
@ -44,7 +44,7 @@ while ($user = $doldb->result->fetch_assoc())
|
||||
{
|
||||
// L'utilisateur existe déjà, on ne le crée pas, mais on vérifie sa validité et si il est à jour de cotisation.
|
||||
$ncuser = $ncdb->result->fetch_assoc();
|
||||
echo "uid:" . $ncuser["uid"] . "existe" . EOL;
|
||||
echo "uid:" . $ncuser["uid"] . " existe" . EOL;
|
||||
$ncdb->query("SELECT configvalue FROM oc_preferences WHERE userid='" . $user["login"] . "' AND appid='core' AND configkey='enabled'");
|
||||
if ( $ncdb->result->num_rows != 0 )
|
||||
{
|
||||
@ -64,6 +64,7 @@ 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']);
|
||||
$interval = new DateInterval('P0000Y02M00D');
|
||||
print_r($datefin);
|
||||
|
Reference in New Issue
Block a user