Index: trunk/extensions/LookupUser/LookupUser.php |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | function showInfo( $target ) { |
100 | 100 | global $wgOut, $wgLang; |
101 | 101 | $user = User::newFromName( $target ); |
102 | | - if ( $user->getId() == 0 ) { |
| 102 | + if ( $user == null || $user->getId() == 0 ) { |
103 | 103 | $wgOut->addWikiText( '<span class="error">' . wfMsg( 'lookupuser_nonexistent', $target ) . '</span>' ); |
104 | 104 | } else { |
105 | 105 | $authTs = $user->getEmailAuthenticationTimestamp(); |