Merge "resourceloader: Add getConfig() method to ResourceLoaderContext"
[lhc/web/wiklou.git] / maintenance / createAndPromote.php
index 2072d7b..24ab3d2 100644 (file)
@@ -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?" );