diff options
Diffstat (limited to 'extensions/LLAuthPlugin.php')
-rw-r--r-- | extensions/LLAuthPlugin.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/extensions/LLAuthPlugin.php b/extensions/LLAuthPlugin.php index fa3d0703..f95a562b 100644 --- a/extensions/LLAuthPlugin.php +++ b/extensions/LLAuthPlugin.php @@ -121,7 +121,12 @@ public function initUser( &$user, $autocreate=false ) { } public function getCanonicalName( $username ) { - return strtoupper(substr($username, 0, 1)).substr($username, 1); + try { + $data = $this->getUserData($username); + } catch (Exception $e) { + return false; + } + return strtoupper(substr($data['name'], 0, 1)).substr($data['name'], 1); } } |