dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
User: Fully clear instance variables when loading not-blocked status
[lhc/web/wiklou.git]
/
includes
/
user
/
User.php
diff --git
a/includes/user/User.php
b/includes/user/User.php
index
ab791b4
..
47d7533
100644
(file)
--- a/
includes/user/User.php
+++ b/
includes/user/User.php
@@
-885,7
+885,7
@@
class User implements IDBAccessObject, UserIdentity {
return null;
}
return null;
}
- if ( !( $flags & self::READ_LATEST ) &&
isset( self::$idCacheByName[$name]
) ) {
+ if ( !( $flags & self::READ_LATEST ) &&
array_key_exists( $name, self::$idCacheByName
) ) {
return self::$idCacheByName[$name];
}
return self::$idCacheByName[$name];
}
@@
-1871,7
+1871,9
@@
class User implements IDBAccessObject, UserIdentity {
$this->mHideName = $block->mHideName;
$this->mAllowUsertalk = !$block->prevents( 'editownusertalk' );
} else {
$this->mHideName = $block->mHideName;
$this->mAllowUsertalk = !$block->prevents( 'editownusertalk' );
} else {
+ $this->mBlock = null;
$this->mBlockedby = '';
$this->mBlockedby = '';
+ $this->mBlockreason = '';
$this->mHideName = 0;
$this->mAllowUsertalk = false;
}
$this->mHideName = 0;
$this->mAllowUsertalk = false;
}