Skip to content

Commit

Permalink
Use config_get_global to access validate_email
Browse files Browse the repository at this point in the history
Issue #27884
  • Loading branch information
atrol committed Jan 30, 2021
1 parent 6e65199 commit b336129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/email_api.php
Expand Up @@ -116,7 +116,7 @@ function email_regex_simple() {
* @return boolean
*/
function email_is_valid( $p_email ) {
$t_validate_email = config_get( 'validate_email' );
$t_validate_email = config_get_global( 'validate_email' );

# if we don't validate then just accept
# If blank email is allowed or current user is admin, then accept blank emails which are useful for
Expand Down

0 comments on commit b336129

Please sign in to comment.