From: quix0r 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=d6a5c97084d5e8f253b3f020db29494ab549e52f;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'));