X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=maintenance%2FcreateAndPromote.php;h=24ab3d21fc72a1cb8c1e7b3e86365b63e5c5c105;hb=9d7a2a625193e8e1c767629e3d01da72c3e8712d;hp=2072d7b54d6062ae60e43569c4ad0bac7704f844;hpb=982466a3abb0aed0874bdde3612fae402c589a5e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/createAndPromote.php b/maintenance/createAndPromote.php index 2072d7b54d..24ab3d21fc 100644 --- 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?" );