Changeset 25071


Ignore:
Timestamp:
Oct 22, 2013, 11:23:21 AM (7 years ago)
Author:
plg
Message:

bug fixed: impossible to configure checkboxes on admin configuration page

sender_copy was not working

Location:
extensions/Piwecard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/Piwecard/admin/admin_configuration.php

    r20341 r25071  
    4040       
    4141        $configuration['validity_choice'] = ((isset($_POST['ecard_validity_choice']) && $_POST['ecard_validity_choice'] == '1') ? true : false);
    42     $configuration['sender_copy'] = ((isset($_POST['ecard_sender_copy']) && $_POST['ecard_sender_copy'] == '1') ? true : false);
     42  $configuration['sender_copy'] = isset($_POST['ecard_sender_copy']);
    4343        $configuration['image_size'] = $_POST['ecard_image_size'];
    4444   
     
    4848        $configuration['image_border']['color'] = ((isset($_POST['ecard_image_border_color']) && $_POST['ecard_image_border_color'] != '1') ? $_POST['ecard_image_border_color'] : $piwecard->get_default_config_param('ecard_image_border_color'));
    4949       
    50         $configuration['sender_email_change'] = ((isset($_POST['ecard_sender_email_change']) && $_POST['ecard_sender_email_change'] == '1') ? true : false);
     50        $configuration['sender_email_change'] = isset($_POST['ecard_sender_email_change']);
    5151       
    5252        $ecard_email_format_array = array();
  • extensions/Piwecard/include/piwecard.class.php

    r24974 r25071  
    437437                                                        }
    438438                                                       
    439                                                         $this->mail($email_infos);
    440                                                        
    441439                                                        // Add the copy to expe if param.
    442440                                                        if (isset($_POST['ecard_copy']))        // send copy to sender
    443441                                                                $email_infos['bcc'] = $email_infos['from_email'];
    444442
     443                                                        $this->mail($email_infos);
     444                                                       
    445445                                                        //Insert into database
    446446                                                        $insert = array(
Note: See TracChangeset for help on using the changeset viewer.