Merge "Follow-up I6a02042f: Ensure reason is always a string"
This commit is contained in:
commit
c610b5abc8
1 changed files with 2 additions and 1 deletions
|
|
@ -177,7 +177,8 @@ class CreateAndPromote extends Maintenance {
|
|||
$userGroupManager = $services->getUserGroupManager();
|
||||
$oldGroups = $userGroupManager->getUserGroups( $user );
|
||||
$userGroupManager->addUserToMultipleGroups( $user, $promotions );
|
||||
$this->addLogEntry( $user, $oldGroups, array_merge( $oldGroups, $promotions ), $this->getOption( 'reason' ) );
|
||||
$reason = $this->getOption( 'reason' ) ?: '';
|
||||
$this->addLogEntry( $user, $oldGroups, array_merge( $oldGroups, $promotions ), $reason );
|
||||
|
||||
if ( !$exists ) {
|
||||
# Increment site_stats.ss_users
|
||||
|
|
|
|||
Loading…
Reference in a new issue