X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fregister_functions.php;h=8eb91a20cb08d6d4e0dbfd02d8243b6b91cbaf69;hp=85af2723d934b35d61c1673b0d626ba1bbadedaf;hb=2e394cb5b8a6225a39a6942b1fcc17c37a17a175;hpb=668d3df20156d5dbd4f34342eeadcbd5d420a8f5 diff --git a/inc/libs/register_functions.php b/inc/libs/register_functions.php index 85af2723d9..8eb91a20cb 100644 --- a/inc/libs/register_functions.php +++ b/inc/libs/register_functions.php @@ -237,7 +237,7 @@ function isRegistrationDataComplete () { if ((postRequestParameter('email') != '!') && (isCheckDoubleEmailEnabled())) { // Does the email address already exists in our database? - if ((!isAdmin()) && (isEmailTaken(postRequestParameter('email')))) { + if ((isEmailTaken(postRequestParameter('email'))) && (!isAdmin())) { setPostRequestParameter('email', '?'); $isOkay = false; } // END - if @@ -482,30 +482,6 @@ function getIpTimeout () { return $GLOBALS[__FUNCTION__]; } -// Getter for 'check_double_email' -function getCheckDoubleEmail () { - // Is the cache entry set? - if (!isset($GLOBALS[__FUNCTION__])) { - // No, so determine it - $GLOBALS[__FUNCTION__] = getConfig('check_double_email'); - } // END - if - - // Return cached entry - return $GLOBALS[__FUNCTION__]; -} - -// Checks wether 'check_double_email' is "YES" -function isCheckDoubleEmailEnabled () { - // Is the cache entry set? - if (!isset($GLOBALS[__FUNCTION__])) { - // No, so determine it - $GLOBALS[__FUNCTION__] = (getCheckDoubleEmail() == 'Y'); - } // END - if - - // Return cached entry - return $GLOBALS[__FUNCTION__]; -} - // Getter for 'register_default' function getRegisterDefault () { // Is the cache entry set?