Plugin Directory

Changeset 2639433


Ignore:
Timestamp:
12/04/2021 10:31:42 AM (4 years ago)
Author:
drcode
Message:

Minor bug fix

Location:
helloadherents/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • helloadherents/trunk/HelloAdherents.php

    r2638215 r2639433  
    3939    if ($helloadhrents_options['google_group_option'] == true) {
    4040        helladh_google_api($info_adherent);
    41     } else {
    42         return;
    4341    }
    4442
     
    4644    if ($helloadhrents_options['mailchimp_group_option'] == true) {
    4745        helladh_mailchimp_api($info_adherent);
    48     } else {
    49         return;
    5046    }
    5147
     
    5450    if ($helloadhrents_options['wordpress_users_group_option'] == true) {
    5551        helladh_wordpress_users($info_adherent);
    56     } else {
    57         return;
    5852    }
    5953
     
    6357        $function = $helloadhrents_options['custom_function'];
    6458        $function($info_adherent);
    65     } else {
    66         return;
    67     }
     59    }
    6860}
    6961
  • helloadherents/trunk/functions/output/mailchimp_api.php

    r2637821 r2639433  
    5151        switch( current_filter() ) {
    5252            case 'wp_ajax_ajax_helladh_test_api_mailchimp':
    53                 echo("<strong>Réponse mailchimp ajout/MAJ contact pour " . esc_attr($adh[mail]) . " :</strong> " . wp_kses_post(print_r($json, true)));
     53                echo("<strong>Réponse mailchimp ajout/MAJ contact pour " . esc_attr($adh[mail]) . " :</strong> " . wp_kses_post(print_r($json->merge_fields, true)));
    5454            break;
    5555        }
    5656
    57         helladh_write_log("Réponse mailchimp ajout/MAJ contact pour " . $adh[mail] . " : " . print_r($json, true));
     57        helladh_write_log("Réponse mailchimp ajout/MAJ contact pour " . $adh[mail] . " : " . print_r($json->merge_fields, true));
    5858
    5959
Note: See TracChangeset for help on using the changeset viewer.