X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fregister_functions.php;h=0fe4451f876ad837aeed67ed0151984e1591dde4;hp=2d6c8e719eb6647449807a168632aa4dad4910ca;hb=b624e45282e31944d7b72742ba0aa826862850dd;hpb=fed2288507c2538be58677ebb72c38bfa7b3dd9e diff --git a/inc/libs/register_functions.php b/inc/libs/register_functions.php index 2d6c8e719e..0fe4451f87 100644 --- a/inc/libs/register_functions.php +++ b/inc/libs/register_functions.php @@ -287,23 +287,25 @@ function doUserRegistration () { reportBug(__FUNCTION__, __LINE__, 'Tried to register a user account without ext-user installed.'); } // END - if + // Init extra SQL data + initExtraRegistrationSql(); + // Init filter data $filterData = array( // Initialization not done by default - 'init_done' => FALSE, - 'post_data' => postRequestArray(), + 'init_done' => FALSE, + 'post_data' => postRequestArray(), + 'blacklisted' => '', + 'message' => '{--PRE_USER_REGISTRATION_FAILED--}', ); - // Init extra SQL data - initExtraRegistrationSql(); - // Run the pre-registration chain $filterData = runFilterChain('pre_user_registration', $filterData); // Did the initialization work? if ($filterData['init_done'] === FALSE) { // Something bad happened! - displayMessage('{--PRE_USER_REGISTRATION_FAILED--}'); + displayMessage($filterData['message']); // Stop here return FALSE;