r64837 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r64836
|
r64837
|
r64838
>
Date:
22:12, 9 April 2010
Author:
catrope
Status:
ok
Tags:
Comment:
Fix another instance of the result of User::newFromName() being compared with null, fixes fatal errors
Modified paths:
/trunk/phase3/includes/specials/SpecialUserlogin.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/specials/SpecialUserlogin.php
—
—
@@ -708,7 +708,7 @@
709
709
return;
710
710
}
711
711
$u = User::newFromName( $this->mName );
712
- if( is_null( $u ) ) {
712
+ if( !$u instanceof User ) {
713
713
$this->mainLoginForm( wfMsg( 'noname' ) );
714
714
return;
715
715
}
Follow-up revisions
Revision
Commit summary
Author
Date
r64838
1.16wmf4: MFT
r64837
catrope
22:15, 9 April 2010
r65360
MFT
r63490
,
r64837
,
r64860
,
r64862
: bug fixes for callers of User::newFromNam...
tstarling
09:30, 21 April 2010
Status & tagging log
09:46, 21 April 2010
😂
(
talk
|
contribs
)
changed the
status
of r64837
[
removed:
new
added:
ok]
09:31, 21 April 2010
Tim Starling
(
talk
|
contribs
)
changed the
tags
for r64837
[
removed:
1.16]
16:28, 20 April 2010
Tim Starling
(
talk
|
contribs
)
changed the
tags
for r64837
[
added:
1.16]