From 5d3cd8ebbbad1ec3b0762613b5686cccc7f2baf0 Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Wed, 30 Sep 2015 20:56:28 +0100 Subject: [PATCH] Fix output from autodisable pref script Report correct number of users and add linebreak. Bug: T112352 Change-Id: I19cd23ff4c28a83408881c299fb3a3ef42ea305b --- autodisablePref.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autodisablePref.php b/autodisablePref.php index 2dc16d86d2..832ca94c28 100644 --- a/autodisablePref.php +++ b/autodisablePref.php @@ -52,7 +52,7 @@ class VEAutodisablePref extends Maintenance { $user->saveSettings(); $lastUserId = $userRow->user_id; } - $this->output( "Added preference for " . count( $results ) . " users." ); + $this->output( "Added preference for " . $results->numRows() . " users.\n" ); wfWaitForSlaves(); } while ( $results->numRows() ); $this->output( "done.\n" );