X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fuser_functions.php;h=ef8c29fa9672373c42f9825beeecfbc2be4abb1e;hb=e9a25aaf7b894880cba6eb65948596aa723adc0c;hp=709369f4adcd1804a89d3ac407deb61f78c1516e;hpb=cb20090aa0558f1b74f0e9f925f29819e8bb3a45;p=mailer.git diff --git a/inc/libs/user_functions.php b/inc/libs/user_functions.php index 709369f4ad..ef8c29fa96 100644 --- a/inc/libs/user_functions.php +++ b/inc/libs/user_functions.php @@ -290,9 +290,12 @@ function doUserLogin ($userid, $passwd, $successUrl = '', $errorUrl = 'modules.p fetchUserData($userid); } - // Get user data array and set userid (e.g. important if we login with nickname) - $content = getUserDataArray(); - if (!empty($content['userid'])) $userid = bigintval($content['userid']); + // No error found? + if ($errorCode == '0') { + // Get user data array and set userid (e.g. important if we login with nickname) + $content = getUserDataArray(); + if (!empty($content['userid'])) $userid = bigintval($content['userid']); + } // END - if // Is there an entry? if ((isUserDataValid()) && (getUserData('status') == 'CONFIRMED') && (!empty($content['userid']))) {