Skip to content

Commit

Permalink
Fix E_STRICT notice in email_is_valid()
Browse files Browse the repository at this point in the history
Regression from a38858a
  • Loading branch information
dregad committed Sep 16, 2014
1 parent 91242cd commit 9235417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/email_api.php
Expand Up @@ -121,7 +121,7 @@ function email_is_valid( $p_email ) {
# check email address is a valid format
$t_email = filter_var( $p_email, FILTER_SANITIZE_EMAIL );
if( PHPMailer::ValidateAddress( $t_email ) ) {
$t_domain = end( explode( '@', $t_email ) );
$t_domain = substr( $t_email, strpos( $t_email, '@' ) + 1 );

# see if we're limited to a set of known domains
$t_limit_email_domains = config_get( 'limit_email_domains' );
Expand Down

0 comments on commit 9235417

Please sign in to comment.