X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupUsersWithNoId.php;h=f7fd9d52609e8235a8e384feca5ca65f4060dee0;hb=00e52d96addceb383baa25b9cd5b40b4fa61d9a8;hp=61d1e5d5abba3d029218cdf95ea65c1669affec0;hpb=8f242b26e7f14aea198cf72f85c42f767bc095af;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupUsersWithNoId.php b/maintenance/cleanupUsersWithNoId.php index 61d1e5d5ab..f7fd9d5260 100644 --- a/maintenance/cleanupUsersWithNoId.php +++ b/maintenance/cleanupUsersWithNoId.php @@ -166,13 +166,13 @@ class CleanupUsersWithNoId extends LoggedUpdateMaintenance { $id = 0; if ( $this->assign ) { - $id = (int)User::idFromName( $name ); + $id = User::idFromName( $name ); if ( !$id ) { // See if any extension wants to create it. if ( !isset( $this->triedCreations[$name] ) ) { $this->triedCreations[$name] = true; if ( !Hooks::run( 'ImportHandleUnknownUser', [ $name ] ) ) { - $id = (int)User::idFromName( $name, User::READ_LATEST ); + $id = User::idFromName( $name, User::READ_LATEST ); } } }