fixed error when fipf see account it changes status accordgin to its own values

This commit is contained in:
asus
2024-03-20 19:31:54 +01:00
parent c973af3131
commit 68905de5d5

View File

@@ -72,12 +72,11 @@ function get_date_limit_CIPF($user_id = null) {
*/
function card_date_diff_CIPF($user_id = null) {
PLGNTLS_class::debug_infos();
/*
* get date limit as DateTime object
*
*/
$current_date_limit = get_date_limit_CIPF();
$current_date_limit = get_date_limit_CIPF($user_id);
if ($current_date_limit === false) {
return false;
}
@@ -186,7 +185,7 @@ function update_card_expiration_CIPF($user_id = null, $card_duration = '0') {
* get date limit as DateTime object
*
*/
$current_date_limit = get_date_limit_CIPF();
$current_date_limit = get_date_limit_CIPF($user_id);
if ($current_date_limit === false) {
$current_date_limit = date_create('today');
}