From: Roland Häder Date: Mon, 5 Jul 2010 08:33:19 +0000 (+0000) Subject: Fix for if user account is missing X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9f11c37fe454412ba85650898391874bb1c2ad06;p=mailer.git Fix for if user account is missing --- diff --git a/inc/libs/user_functions.php b/inc/libs/user_functions.php index 4ef50c9d38..6e8ebaf67d 100644 --- a/inc/libs/user_functions.php +++ b/inc/libs/user_functions.php @@ -385,7 +385,7 @@ function doUserLogin ($userid, $passwd, $successUrl = '', $errorUrl = 'modules.p // Wrong password! $errorCode = getCode('WRONG_PASS'); } - } elseif (getUserData('status') != 'CONFIRMED') { + } elseif ((isUserDataValid()) && (getUserData('status') != 'CONFIRMED')) { // Create an error code from given status $errorCode = generateErrorCodeFromUserStatus(getUserData('status'));