X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=blobdiff_plain;f=maintenance%2FfixUserRegistration.php;h=e1b16829892431524dc2a27a802209201bbf32d3;hb=8bd0600b14c89e002b72c7acfa52a28bd66ce3e3;hp=57fd91bc9bc496ce541c3f2743621b624370fe1f;hpb=993f0c6f1e1708d78cccca3e9133c62f9392e245;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fixUserRegistration.php b/maintenance/fixUserRegistration.php index 57fd91bc9b..e1b1682989 100644 --- a/maintenance/fixUserRegistration.php +++ b/maintenance/fixUserRegistration.php @@ -59,11 +59,15 @@ class FixUserRegistration extends Maintenance { $id = $row->user_id; $lastId = $id; // Get first edit time + $actorQuery = ActorMigration::newMigration() + ->getWhere( $dbw, 'rev_user', User::newFromId( $id ) ); $timestamp = $dbw->selectField( - 'revision', + [ 'revision' ] + $actorQuery['tables'], 'MIN(rev_timestamp)', - [ 'rev_user' => $id ], - __METHOD__ + $actorQuery['conds'], + __METHOD__, + [], + $actorQuery['joins'] ); // Update if ( $timestamp !== null ) {