diff --git a/plugins/cipf_plugin/cipf_plugin.php b/plugins/cipf_plugin/cipf_plugin.php index 049a073..98161d9 100644 --- a/plugins/cipf_plugin/cipf_plugin.php +++ b/plugins/cipf_plugin/cipf_plugin.php @@ -4,7 +4,7 @@ Plugin Name: cipf_plugin Plugin URI: Description: Author: hugogogo -Version: 0.3.10.2 +Version: 0.3.11 Author URI: */ diff --git a/plugins/cipf_plugin/php/paypal/update_user_payment.php b/plugins/cipf_plugin/php/paypal/update_user_payment.php index 422dd77..5c86263 100644 --- a/plugins/cipf_plugin/php/paypal/update_user_payment.php +++ b/plugins/cipf_plugin/php/paypal/update_user_payment.php @@ -173,6 +173,7 @@ function success_payment_for_user_CIPF($user_id, $order_id) { } set_payment_success_CIPF($user_id); + set_account_valid_CIPF($user_id); } diff --git a/plugins/cipf_plugin/php/profs_dates.php b/plugins/cipf_plugin/php/profs_dates.php index e2b18c3..ec34d09 100644 --- a/plugins/cipf_plugin/php/profs_dates.php +++ b/plugins/cipf_plugin/php/profs_dates.php @@ -188,7 +188,7 @@ function update_card_expiration_CIPF($user_id = null, $card_duration = '0') { */ $current_date_limit = get_date_limit_CIPF(); if ($current_date_limit === false) { - return false; + $current_date_limit = date_create('today'); } /*