$user = UserRightsProxy::newFromName( $database, $name );
}
- if( !$user || $user->isAnon() ) {
+ if( !$user || $user->getId() == 0 ) {
$wgOut->addWikiText( wfMsg( 'nosuchusershort', wfEscapeWikiText( $username ) ) );
return null;
}
* Returns true if the user is not an anonymous visitor.
*
* @return bool
+ * @fixme "special-case optimization" may fail for an object referring to a user that doesn't exist in the system.
*/
function isLoggedIn() {
if( $this->mId === null and $this->mName !== null ) {