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
Merge "resourceloader: Add getConfig() method to ResourceLoaderContext"
[lhc/web/wiklou.git]
/
maintenance
/
createAndPromote.php
diff --git
a/maintenance/createAndPromote.php
b/maintenance/createAndPromote.php
index
2072d7b
..
24ab3d2
100644
(file)
--- a/
maintenance/createAndPromote.php
+++ b/
maintenance/createAndPromote.php
@@
-66,7
+66,7
@@
class CreateAndPromote extends Maintenance {
$this->fatalError( "invalid username." );
}
- $exists = (
0 !== $user->idForName()
);
+ $exists = (
$user->idForName() !== 0
);
if ( $exists && !$force ) {
$this->fatalError( "Account exists. Perhaps you want the --force option?" );