From b5147547227f24aa7f1cb1ec694c0d651c1a82d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Thu, 10 Jul 2008 07:09:46 +0000 Subject: [PATCH] * Fix regression in 37317, random content going into logs --- includes/specials/SpecialUserrights.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index 28c9ca28a4..7fa21bc711 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -197,8 +197,8 @@ class UserrightsPage extends SpecialPage { $user->getUserPage(), $wgRequest->getText( 'user-reason' ), array( - $this->makeGroupNameList( $oldGroups ), - $this->makeGroupNameList( $newGroups ) + $this->makeGroupNameListForLog( $oldGroups ), + $this->makeGroupNameListForLog( $newGroups ) ) ); } @@ -295,6 +295,14 @@ class UserrightsPage extends SpecialPage { } } + function makeGroupNameListForLog( $ids ) { + if( empty( $ids ) ) { + return ''; + } else { + return $this->makeGroupNameList( $ids ); + } + } + /** * Output a form to allow searching for a user */ -- 2.20.1