From: Marcel Werk Date: Tue, 7 Jan 2014 12:32:39 +0000 (+0100) Subject: Fixed error in username validation X-Git-Tag: 2.0.2~33 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=864bb47fe0e120dc323dc43df577888758227dfa;p=GitHub%2FWoltLab%2FWCF.git Fixed error in username validation http://www.woltlab.com/forum/index.php/Thread/219895-Fehlerhafter-Benutzername-bei-starten-einer-PN-Fatal-Error/ --- 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;