Index: trunk/extensions/CheckUser/CheckUser_body.php |
— | — | @@ -815,7 +815,6 @@ |
816 | 816 | $s .= Xml::check( 'users[]', false, array( 'value' => $name ) ) . ' '; |
817 | 817 | # Load user object |
818 | 818 | $user = User::newFromName( $name, false ); |
819 | | - $authUser = $wgAuth->getUserInstance( $user ); |
820 | 819 | # Add user tool links |
821 | 820 | $s .= $this->sk->userLink( -1 , $name ) . $this->sk->userToolLinks( -1 , $name ); |
822 | 821 | # Add CheckUser link |
— | — | @@ -863,7 +862,8 @@ |
864 | 863 | $flags[] = '<strong>(' . $blocklog . ')</strong>'; |
865 | 864 | } |
866 | 865 | # Show if account is local only |
867 | | - if( $authUser->getId() === 0 ) { |
| 866 | + $authUser = $wgAuth->getUserInstance( $user ); |
| 867 | + if( $user->getId() && $authUser->getId() === 0 ) { |
868 | 868 | $flags[] = '<strong>(' . wfMsgHtml('checkuser-localonly') . ')</strong>'; |
869 | 869 | } |
870 | 870 | # Check for extra user rights... |