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
(bug 26854) Invalid user names go unchecked. Applied most of the patch submitted...
[lhc/web/wiklou.git]
/
includes
/
WikiPage.php
diff --git
a/includes/WikiPage.php
b/includes/WikiPage.php
index
fff85ce
..
8bfc4e1
100644
(file)
--- a/
includes/WikiPage.php
+++ b/
includes/WikiPage.php
@@
-2322,7
+2322,9
@@
class WikiPage extends Page {
# User talk pages
if ( $title->getNamespace() == NS_USER_TALK ) {
$user = User::newFromName( $title->getText(), false );
- $user->setNewtalk( false );
+ if ( $user ) {
+ $user->setNewtalk( false );
+ }
}
# Image redirects