X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FresetUserTokens.php;h=154482c75a24990eb9087e24002612258139b46c;hb=ba76dfdd050b83eb124ef2f12a6f22c467133fca;hp=284db2c22e70a53003c192b7741ed9a571c70f26;hpb=77e3624caba072521fbc1826af2d47f9b29f4032;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/resetUserTokens.php b/maintenance/resetUserTokens.php index 284db2c22e..154482c75a 100644 --- a/maintenance/resetUserTokens.php +++ b/maintenance/resetUserTokens.php @@ -50,10 +50,10 @@ class ResetUserTokens extends Maintenance { } public function execute() { - $this->nullsOnly = $this->getOption( 'nulls' ); + $nullsOnly = $this->getOption( 'nulls' ); if ( !$this->getOption( 'nowarn' ) ) { - if ( $this->nullsOnly ) { + if ( $nullsOnly ) { $this->output( "The script is about to reset the user_token " . "for USERS WITH NULL TOKENS in the database.\n" ); } else { @@ -71,7 +71,7 @@ class ResetUserTokens extends Maintenance { $dbr = $this->getDB( DB_REPLICA ); $where = []; - if ( $this->nullsOnly ) { + if ( $nullsOnly ) { // Have to build this by hand, because \ is escaped in helper functions $where = [ 'user_token = \'' . str_repeat( '\0', 32 ) . '\'' ]; }