From 864bb47fe0e120dc323dc43df577888758227dfa Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 7 Jan 2014 13:32:39 +0100 Subject: [PATCH] Fixed error in username validation http://www.woltlab.com/forum/index.php/Thread/219895-Fehlerhafter-Benutzername-bei-starten-einer-PN-Fatal-Error/ --- wcfsetup/install/files/lib/data/user/UserProfile.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/user/UserProfile.class.php b/wcfsetup/install/files/lib/data/user/UserProfile.class.php index 8a003c7a9c..63780322b1 100644 --- a/wcfsetup/install/files/lib/data/user/UserProfile.class.php +++ b/wcfsetup/install/files/lib/data/user/UserProfile.class.php @@ -451,7 +451,9 @@ class UserProfile extends DatabaseObjectDecorator implements IBreadcrumbProvider // revert usernames to original case foreach ($users as $username => $user) { unset($users[$username]); - $users[$caseSensitiveUsernames[$username]] = $user; + if (isset($caseSensitiveUsernames[$username])) { + $users[$caseSensitiveUsernames[$username]] = $user; + } } return $users; -- 2.20.1