Support » Plugin: Import users from CSV with meta » Blank EMail Field in CSV Data Not Detected

  • Resolved Malcolm

    (@malcolm-oph)


    A blank EMail field in a CSV row is not flagged as an error, and a user record is still added/updated creating a user without a valid email entry.

    Maybe an extra check for a blank email entry would be useful.

    Something on the lines of the following at line 249 would do it:
    elseif( $email == ” ) { // if email is blank
    $problematic_row = true;
    $data[0] = __(‘EMail not specified’,’import-users-from-csv-with-meta’);
    }
    `

Viewing 1 replies (of 1 total)
  • Plugin Author Javier Carazo

    (@carazo)

    Added 🙂

    elseif( empty( $email) ) { // if email is blank
    						$problematic_row = true;
    						$data[0] = __( 'EMail not specified', 'import-users-from-csv-with-meta' );
    					}

    This is in the new version, just updated.

Viewing 1 replies (of 1 total)
  • The topic ‘Blank EMail Field in CSV Data Not Detected’ is closed to new replies.