r59797 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r59796
|
r59797
|
r59798
>
Date:
19:42, 7 December 2009
Author:
ialex
Status:
resolved (
Comments
)
Tags:
Comment:
Per Nikerabbit, follow-up to
r59761
: just check for "instanceof User"
Modified paths:
/trunk/phase3/includes/specials/SpecialUserlogin.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/specials/SpecialUserlogin.php
—
—
@@ -272,7 +272,7 @@
273
273
return false;
274
274
}
275
275
276
- if ( is_null( $u ) || $u === false ) {
276
+ if ( !$u instanceof User ) {
277
277
$this->mainLoginForm( wfMsg( 'noname' ) );
278
278
return false;
279
279
}
Follow-up revisions
Revision
Commit summary
Author
Date
r59893
Fix
r59761
,
r59797
: check if is_object()
demon
18:25, 9 December 2009
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r59761
User::newFromName() can return false on invalid user name, and thus was throw...
ialex
21:26, 5 December 2009
Comments
#
Comment by
Tim Starling
(
talk
|
contribs
)
23:25, 8 December 2009
Fixme per comment on
r59761
.
#
Comment by
😂
(
talk
|
contribs
)
18:31, 9 December 2009
Should be resolved with
r59893
.
Status & tagging log
18:31, 9 December 2009
😂
(
talk
|
contribs
)
changed the
status
of r59797
[
removed:
fixme
added:
resolved]
23:25, 8 December 2009
Tim Starling
(
talk
|
contribs
)
changed the
status
of r59797
[
removed:
new
added:
fixme]