From 68905de5d5d0cf236ea7aee23bb1153d67070c3e Mon Sep 17 00:00:00 2001 From: asus Date: Wed, 20 Mar 2024 19:31:54 +0100 Subject: [PATCH] fixed error when fipf see account it changes status accordgin to its own values --- plugins/cipf_plugin/php/profs_dates.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/cipf_plugin/php/profs_dates.php b/plugins/cipf_plugin/php/profs_dates.php index ec34d09..5460a92 100644 --- a/plugins/cipf_plugin/php/profs_dates.php +++ b/plugins/cipf_plugin/php/profs_dates.php @@ -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'); }