X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=maintenance%2FcleanupUsersWithNoId.php;h=f7fd9d52609e8235a8e384feca5ca65f4060dee0;hb=2a4e5dc9c7b240c261c7ef1b85ebd8837b3e526b;hp=b2fdf2f9c733cfba6993e17d83b09c15235cfcae;hpb=804970ba3dfc61c2e267189eff1fbfda68c4c80f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupUsersWithNoId.php b/maintenance/cleanupUsersWithNoId.php index b2fdf2f9c7..f7fd9d5260 100644 --- a/maintenance/cleanupUsersWithNoId.php +++ b/maintenance/cleanupUsersWithNoId.php @@ -95,7 +95,7 @@ class CleanupUsersWithNoId extends LoggedUpdateMaintenance { * @param IDatabase $dbw * @param string[] $indexFields Fields in the index being ordered by * @param object $row Database row - * @return array [ string $next, string $display ] + * @return string[] [ string $next, string $display ] */ private function makeNextCond( $dbw, $indexFields, $row ) { $next = ''; @@ -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 ); } } }