Plugin Directory

Changeset 3191720


Ignore:
Timestamp:
11/19/2024 01:35:13 AM (17 months ago)
Author:
mailboxvalidator
Message:

Fixed undefined array key issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mailboxvalidator-email-validator/trunk/mailboxvalidator-email-validator.php

    r3191718 r3191720  
    904904        // $is_free = $mbv_options['free_on_off'] == 'on' ? $this->mbv_is_free( $email, $mbv_options['api_key'], $debug_mode_on_off ) : false;
    905905        if ($mbv_options['disposable_on_off'] === 'on') {
    906             if ($single_result != '' && $single_result['error_message'] == '') {
     906            if ($single_result != '' && !(array_key_exists('error_message', $single_result))) {
    907907                $is_disposable = ($single_result['is_disposable']) ? true : false;
    908908            } else {
     
    913913        }
    914914        if ($mbv_options['free_on_off'] === 'on') {
    915             if ($single_result != '' && $single_result['error_message'] == '') {
     915            if ($single_result != '' && !(array_key_exists('error_message', $single_result))) {
    916916                $is_free = ($single_result['is_free']) ? true : false;
    917917            } else {
Note: See TracChangeset for help on using the changeset viewer.