X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupUsersWithNoId.php;h=f7fd9d52609e8235a8e384feca5ca65f4060dee0;hb=efbfa0a727a196e63a2b71f0a82f09150c2be354;hp=61d1e5d5abba3d029218cdf95ea65c1669affec0;hpb=b231efb4087e2d6ed25c5ff14018a9b4565cef72;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 ); } } }