• Resolved gregorme

    (@gregorme)


    Hi,
    we have connected our CF7 Forms to and external Service via API and therefore all default mails of CF7 are disabled. The current Version of CF7 set the mail settings to false if they are disabled.
    Now your plugin thows 2 PHP errors on each submission as hide_hidden_mail_fields() does not check if $props[$mail] is an array or false.

    
    $probs = array(
    ...
    'mail' => false,
    'mail_2' => false,
    'messages' => array(...),
    ...
    );
    foreach ($props[$mail] as $key=>$val) {...}
    

    It would be nice if you can fix this in your next version.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Error if all mails are disabled’ is closed to new replies.