Skip to content

Commit

Permalink
Closes #4900 - Allow plugins to override the check_email() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Oct 29, 2022
1 parent 810599d commit 051161a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions class2.php
Original file line number Diff line number Diff line change
Expand Up @@ -1190,6 +1190,10 @@ function js_location($qry)

function check_email($email)
{
if ($user_func = e107::getOverride()->check('check_email'))
{
return call_user_func($user_func);
}

if(empty($email))
{
Expand Down

0 comments on commit 051161a

Please sign in to comment.