From f0f8c5c1eb49a13b41d70fbb5c6546f2d6be4afa Mon Sep 17 00:00:00 2001 From: quix0r Date: Tue, 5 Jun 2012 15:50:06 +0000 Subject: [PATCH] fetchUserStatus()-s return value was not handled, which causes possible login errors ('Unknown account status occured' or so) with nickname, login with user id is not affected by this bug --- inc/libs/user_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/libs/user_functions.php b/inc/libs/user_functions.php index 2a4bc4f03f..63fb9f9bc3 100644 --- a/inc/libs/user_functions.php +++ b/inc/libs/user_functions.php @@ -279,7 +279,7 @@ function doUserLogin ($userid, $passwd, $successUrl = '', $errorUrl = 'modules.p // Check login data if ((isExtensionActive('nickname')) && (isNicknameUsed($userid))) { // Nickname entered - fetchUserData($userid, 'nickname'); + $isFound = fetchUserData($userid, 'nickname'); } elseif (isNicknameUsed($userid)) { // No nickname installed $errorCode = getCode('EXTENSION_PROBLEM'); -- 2.39.5