fixed error when fipf see account it changes status accordgin to its own values
This commit is contained in:
@@ -72,12 +72,11 @@ function get_date_limit_CIPF($user_id = null) {
|
|||||||
*/
|
*/
|
||||||
function card_date_diff_CIPF($user_id = null) {
|
function card_date_diff_CIPF($user_id = null) {
|
||||||
PLGNTLS_class::debug_infos();
|
PLGNTLS_class::debug_infos();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* get date limit as DateTime object
|
* 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) {
|
if ($current_date_limit === false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -186,7 +185,7 @@ function update_card_expiration_CIPF($user_id = null, $card_duration = '0') {
|
|||||||
* get date limit as DateTime object
|
* 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) {
|
if ($current_date_limit === false) {
|
||||||
$current_date_limit = date_create('today');
|
$current_date_limit = date_create('today');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user