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'); }