From baf34a747b99c9257a173a440c69a30237d99573 Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Sat, 17 Nov 2012 20:41:46 +0000 Subject: [PATCH] (bug 42211) Fix the display of some user rights log entries Change-Id: Iba8891bbf0891fa82c0e76b5a604bf05c14aded5 --- includes/logging/LogFormatter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/logging/LogFormatter.php b/includes/logging/LogFormatter.php index 8c1e294b3e..d906b13c12 100644 --- a/includes/logging/LogFormatter.php +++ b/includes/logging/LogFormatter.php @@ -1108,7 +1108,9 @@ class RightsLogFormatter extends LogFormatter { $params[3] = $this->msg( 'rightsnone' )->text(); } if ( count( $newGroups ) ) { - $params[4] = $lang->listToText( $newGroups ); + // Array_values is used here because of bug 42211 + // see use of array_unique in UserrightsPage::doSaveUserGroups on $newGroups. + $params[4] = $lang->listToText( array_values( $newGroups ) ); } else { $params[4] = $this->msg( 'rightsnone' )->text(); } -- 2.20.1