Fix --user option in DeleteLocalPasswords
authorAmir Sarabadani <ladsgroup@gmail.com>
Wed, 12 Sep 2018 11:31:59 +0000 (13:31 +0200)
committerAmir Sarabadani <ladsgroup@gmail.com>
Wed, 12 Sep 2018 11:31:59 +0000 (13:31 +0200)
Bug: T201009
Change-Id: I69c14741f578b59cd73e5c8c5576f8c250825a30

maintenance/includes/DeleteLocalPasswords.php

index e3f8926..bfbbcdc 100644 (file)
@@ -157,7 +157,7 @@ ERROR
        protected function getUserBatches() {
                if ( !is_null( $this->user ) ) {
                        $this->output( "\t ... querying '$this->user'\n" );
-                       yield [ $this->user ];
+                       yield [ [ $this->user ] ];
                        return;
                }