From: Alex Monk Date: Sat, 17 Nov 2012 20:41:46 +0000 (+0000) Subject: (bug 42211) Fix the display of some user rights log entries X-Git-Tag: 1.31.0-rc.0~21320^2 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=baf34a747b99c9257a173a440c69a30237d99573;p=lhc%2Fweb%2Fwiklou.git (bug 42211) Fix the display of some user rights log entries Change-Id: Iba8891bbf0891fa82c0e76b5a604bf05c14aded5 --- 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(); }