Plugin Directory

Changeset 3473192


Ignore:
Timestamp:
03/03/2026 02:15:28 AM (4 weeks ago)
Author:
mailboxvalidator
Message:

Fixed PHP warning for undefined array key.

Location:
email-validator-for-contact-form-7/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • email-validator-for-contact-form-7/trunk/email-validator-for-contact-form-7.php

    r3416871 r3473192  
    99Description:  Enables Contact Form 7 users to validate their client’s email address before accepting their messages for sending using MailboxValidator. <strong>Before get started, install and activate the Contact Form 7 plugin first.</strong>
    1010
    11 Version:      1.8.1
     11Version:      1.8.2
    1212
    1313Author:       MailboxValidator
     
    926926
    927927            }*/
    928             if ( $options['trusted_domains'] !== '' ) {
     928            if ( ! empty( $options['trusted_domains'] ) ) {
    929929                $trusted_domains_array = explode( ';', $options['trusted_domains'] );
    930930                if ( ( isset( $email_parts[1] ) ) && ( in_array( $email_parts[1], $trusted_domains_array ) ) ) {
     
    935935            // First check the domain blacklisted list, if the domain is in the list, straight return false
    936936            $is_domain_blacklisted = false;
    937             if ( $options['blacklisted_domains'] !== '' ) {
     937            if ( ! empty( $options['blacklisted_domains'] ) ) {
    938938                $blacklisted_domains_array = explode( ';', $options['blacklisted_domains'] );
    939939               
  • email-validator-for-contact-form-7/trunk/readme.txt

    r3416871 r3473192  
    6767
    6868== Changelog ==
     69
     70= 1.8.2 =
     71* Fixed PHP warning for undefined array key.
    6972
    7073= 1.8.1 =
Note: See TracChangeset for help on using the changeset viewer.