$user->getUserPage(),
$wgRequest->getText( 'user-reason' ),
array(
- $this->makeGroupNameList( $oldGroups ),
- $this->makeGroupNameList( $newGroups )
+ $this->makeGroupNameListForLog( $oldGroups ),
+ $this->makeGroupNameListForLog( $newGroups )
)
);
}
}
}
+ function makeGroupNameListForLog( $ids ) {
+ if( empty( $ids ) ) {
+ return '';
+ } else {
+ return $this->makeGroupNameList( $ids );
+ }
+ }
+
/**
* Output a form to allow searching for a user
*/