X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FresetUserTokens.php;h=08be553773e9003c1de74b6a12e58254929c8514;hb=bfb760f9e71a7a4de34e99bf804fb6149c9e9d49;hp=a1ee3deba3a52b40988493cdaa0c44890939837a;hpb=89d8c583d7d6dd03f10382208a2cf5d43e2f7c3e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/resetUserTokens.php b/maintenance/resetUserTokens.php index a1ee3deba3..08be553773 100644 --- a/maintenance/resetUserTokens.php +++ b/maintenance/resetUserTokens.php @@ -70,7 +70,7 @@ class ResetUserTokens extends Maintenance { $where = array(); if ( $this->nullsOnly ) { // Have to build this by hand, because \ is escaped in helper functions - $where = array( 'user_token = \'' . str_repeat( '\0', 32) . '\'' ); + $where = array( 'user_token = \'' . str_repeat( '\0', 32 ) . '\'' ); } $maxid = $dbr->selectField( 'user', 'MAX(user_id)', array(), __METHOD__ ); @@ -98,9 +98,7 @@ class ResetUserTokens extends Maintenance { $max = $min + $this->mBatchSize; wfWaitForSlaves(); - } while ( $min <= $maxid ); - } private function updateUser( $userid ) {