small improvements in handling prof states :

- card date validation now uses direct card duration, not a parameter
- checker for both types of transfert valid and invalid
- mv checks for transfert and date expiration in specific functions
This commit is contained in:
asus
2024-03-21 16:10:07 +01:00
parent 782ae1b1d8
commit 66fbbfd586
7 changed files with 115 additions and 51 deletions

View File

@@ -167,9 +167,10 @@ function card_date_exists_CIPF($user_id = null) {
* card_duration is expected in a string format : https://www.php.net/manual/en/class.dateinterval.php
*
*/
function update_card_expiration_CIPF($user_id = null, $card_duration = '0') {
function update_card_expiration_CIPF($user_id = null) {
PLGNTLS_class::debug_infos();
$acf_card_expiration = PLGNTLS_class::ACF_CARD_EXPIRATION;
$card_duration = PLGNTLS_class::CARD_VALIDITY_TIME;
/*
* define acf id and acf date format